Skip to content

Commit 398ebd4

Browse files
committed
MAGETWO-87815: Update PAT scenarios for caching popular search terms functionality
1 parent c1db173 commit 398ebd4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dev/tests/js/jasmine/tests/lib/mage/misc.test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ define([
1111

1212
describe('mageUtils', function () {
1313

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+
1424
it('Check convertToMomentFormat function', function () {
1525
var format, momentFormat;
1626

0 commit comments

Comments
 (0)