We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1db173 commit 398ebd4Copy full SHA for 398ebd4
dev/tests/js/jasmine/tests/lib/mage/misc.test.js
@@ -11,6 +11,16 @@ define([
11
12
describe('mageUtils', function () {
13
14
+ it('Check getUrlParameters function', function () {
15
+ var url = 'http://example.com/catalogsearch/result/?q=+Simple+99%2C+8%2F%3F&cat=3',
16
+ urlParameters = {
17
+ q: ' Simple 99, 8/?',
18
+ cat: '3'
19
+ };
20
+
21
+ expect(utils.getUrlParameters(url)).toEqual(urlParameters);
22
+ });
23
24
it('Check convertToMomentFormat function', function () {
25
var format, momentFormat;
26
0 commit comments