mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
fix typo, clarify test names
This commit is contained in:
@@ -56,7 +56,7 @@ function stringToObject(config, qs) {
|
|||||||
export { stringToObject as _stringToObject };
|
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 {string} namespace to append to params
|
||||||
* @param {object} params object to append namespace to
|
* @param {object} params object to append namespace to
|
||||||
* @return {object} params object with namespaced keys
|
* @return {object} params object with namespaced keys
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ describe('qs (qs.js)', () => {
|
|||||||
test('should get default QS config object', () => {
|
test('should get default QS config object', () => {
|
||||||
expect(getQSConfig('organization')).toEqual({
|
expect(getQSConfig('organization')).toEqual({
|
||||||
namespace: 'organization',
|
namespace: 'organization',
|
||||||
dateFields: ['modified', 'created'],
|
|
||||||
defaultParams: { page: 1, page_size: 5, order_by: 'name' },
|
defaultParams: { page: 1, page_size: 5, order_by: 'name' },
|
||||||
integerFields: ['page', 'page_size'],
|
integerFields: ['page', 'page_size'],
|
||||||
dateFields: ['modified', 'created'],
|
dateFields: ['modified', 'created'],
|
||||||
@@ -133,7 +132,6 @@ describe('qs (qs.js)', () => {
|
|||||||
};
|
};
|
||||||
expect(getQSConfig('inventory', defaults)).toEqual({
|
expect(getQSConfig('inventory', defaults)).toEqual({
|
||||||
namespace: 'inventory',
|
namespace: 'inventory',
|
||||||
dateFields: ['modified', 'created'],
|
|
||||||
defaultParams: { page: 1, page_size: 15 },
|
defaultParams: { page: 1, page_size: 15 },
|
||||||
integerFields: ['page', 'page_size'],
|
integerFields: ['page', 'page_size'],
|
||||||
dateFields: ['modified', 'created'],
|
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 = {
|
const oldParams = {
|
||||||
foo: ['one', 'two'],
|
foo: ['one', 'two'],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user