fix typo, clarify test names

This commit is contained in:
Keith Grant 2019-09-20 13:45:22 -07:00
parent 1f149bb086
commit 5d840af223
2 changed files with 2 additions and 4 deletions

View File

@ -56,7 +56,7 @@ function stringToObject(config, qs) {
export { stringToObject as _stringToObject };
/**
* helper function to check the namespace of a param is what you expec
* helper function to check the namespace of a param is what you expect
* @param {string} namespace to append to params
* @param {object} params object to append namespace to
* @return {object} params object with namespaced keys

View File

@ -115,7 +115,6 @@ describe('qs (qs.js)', () => {
test('should get default QS config object', () => {
expect(getQSConfig('organization')).toEqual({
namespace: 'organization',
dateFields: ['modified', 'created'],
defaultParams: { page: 1, page_size: 5, order_by: 'name' },
integerFields: ['page', 'page_size'],
dateFields: ['modified', 'created'],
@ -133,7 +132,6 @@ describe('qs (qs.js)', () => {
};
expect(getQSConfig('inventory', defaults)).toEqual({
namespace: 'inventory',
dateFields: ['modified', 'created'],
defaultParams: { page: 1, page_size: 15 },
integerFields: ['page', 'page_size'],
dateFields: ['modified', 'created'],
@ -637,7 +635,7 @@ describe('qs (qs.js)', () => {
});
});
it('should append to array', () => {
it('should append value to existing array', () => {
const oldParams = {
foo: ['one', 'two'],
};