summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-05-16 08:18:53 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-05-16 08:18:53 +0000
commit17806d7619e3bcf9c006788d65ea85d56c34bc14 (patch)
tree1eab7b80a20075aba9d2e1e76ec5a597f447ea6a /spec
parentfefd331c2a7f2da2ed23d9be6667fdd9cd782092 (diff)
parent45790564769efa860b48166e86e770fc4b44dcf5 (diff)
downloadgitlab-ce-17806d7619e3bcf9c006788d65ea85d56c34bc14.tar.gz
Merge branch 'issue-boards-label-filtering' into 'master'
Fixed issue boards not filtering when URL params are encoded Closes #32084 See merge request !11320
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/lib/utils/common_utils_spec.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/javascripts/lib/utils/common_utils_spec.js b/spec/javascripts/lib/utils/common_utils_spec.js
index 5eb147ed888..42a9067ade5 100644
--- a/spec/javascripts/lib/utils/common_utils_spec.js
+++ b/spec/javascripts/lib/utils/common_utils_spec.js
@@ -41,6 +41,16 @@ require('~/lib/utils/common_utils');
const paramsArray = gl.utils.getUrlParamsArray();
expect(paramsArray[0][0] !== '?').toBe(true);
});
+
+ it('should decode params', () => {
+ history.pushState('', '', '?label_name%5B%5D=test');
+
+ expect(
+ gl.utils.getUrlParamsArray()[0],
+ ).toBe('label_name[]=test');
+
+ history.pushState('', '', '?');
+ });
});
describe('gl.utils.handleLocationHash', () => {