fix?
Some checks are pending
CodeQL / Analyze (javascript) (push) Waiting to run
CI / general_module_workflow_js (push) Waiting to run

This commit is contained in:
Dennis Eichhorn 2024-05-17 19:08:52 +00:00
parent 94fb96686b
commit 0d76bbd8a2

View File

@ -66,7 +66,7 @@ describe('UriFactoryTest', function ()
{ {
it('Testing global queries', function () it('Testing global queries', function ()
{ {
let uri = 'www.test-uri.com?id={@ID}&test={.mTest}&two={/path}&hash={#hash}&found={/not}?v={/valid2}', let uri = 'www.test-uri.com?id={@ID}&test={.mTest}&two={/path}&hash={#hash}&found={/not}?v={?valid2}',
vars = { vars = {
'@ID' : 1, '@ID' : 1,
'.mTest': 'someString', '.mTest': 'someString',
@ -75,7 +75,7 @@ describe('UriFactoryTest', function ()
}, },
expected = 'www.test-uri.com?id=1&test=someString&two=PATH&hash=test&found=ERROR%20PATH&v=query4'; expected = 'www.test-uri.com?id=1&test=someString&two=PATH&hash=test&found=ERROR%20PATH&v=query4';
expect(UriFactory.setQuery('/valid2', 'query4')).toBeTruthy(); expect(UriFactory.setQuery('?valid2', 'query4')).toBeTruthy();
expect(UriFactory.build(uri, vars)).toBe(expected); expect(UriFactory.build(uri, vars)).toBe(expected);
}); });
}); });