From 5d840af2234135afaee7687026681d87d26a039b Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Fri, 20 Sep 2019 13:45:22 -0700 Subject: [PATCH] fix typo, clarify test names --- awx/ui_next/src/util/qs.js | 2 +- awx/ui_next/src/util/qs.test.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/awx/ui_next/src/util/qs.js b/awx/ui_next/src/util/qs.js index e4b8b3cf75..e7b38bad36 100644 --- a/awx/ui_next/src/util/qs.js +++ b/awx/ui_next/src/util/qs.js @@ -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 diff --git a/awx/ui_next/src/util/qs.test.js b/awx/ui_next/src/util/qs.test.js index 6ae8e48ba0..c50ef8d217 100644 --- a/awx/ui_next/src/util/qs.test.js +++ b/awx/ui_next/src/util/qs.test.js @@ -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'], };