mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 18:07:33 -02:30
add qs test confirming default values are omitted
This commit is contained in:
@@ -899,6 +899,17 @@ describe('qs (qs.js)', () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('should omit default values', () => {
|
||||||
|
const query = 'template.page=2';
|
||||||
|
const newParams = {
|
||||||
|
page: 3,
|
||||||
|
page_size: 5,
|
||||||
|
};
|
||||||
|
expect(replaceNamespacedParams(config, query, newParams)).toEqual(
|
||||||
|
'template.page=3'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
// This fix needed after we're confident refactoring components
|
// This fix needed after we're confident refactoring components
|
||||||
// to use replaceNamespacedParams provides equivalent functionality
|
// to use replaceNamespacedParams provides equivalent functionality
|
||||||
test.skip('should not alter params of other namespaces', () => {
|
test.skip('should not alter params of other namespaces', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user