summaryrefslogtreecommitdiff
path: root/web-ui/test/unit/util.spec.js
diff options
context:
space:
mode:
authorTulio Casagrande <tuliocasagrande@gmail.com>2017-02-24 15:53:06 -0300
committerGitHub <noreply@github.com>2017-02-24 15:53:06 -0300
commitf783cbba382433c122e19a7231ebe17cc1ae7e5b (patch)
tree0f29f48029cdbc6bb53aa80ea6fa8862732b7459 /web-ui/test/unit/util.spec.js
parentd77d9c41e5a5b791cf54082f0f1ae83699f0bc95 (diff)
parentef173d95b22154ee72c685cd6d5b04e9473dc988 (diff)
Merge pull request #993 from pixelated/login-errors
Login errors - some refactorings
Diffstat (limited to 'web-ui/test/unit/util.spec.js')
-rw-r--r--web-ui/test/unit/util.spec.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/web-ui/test/unit/util.spec.js b/web-ui/test/unit/util.spec.js
deleted file mode 100644
index 968b2d83..00000000
--- a/web-ui/test/unit/util.spec.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import expect from 'expect';
-import Util from 'src/util';
-
-describe('Utils', () => {
- describe('.hasQueryParameter', () => {
- global.window = {
- location: {
- search: '?auth-error&lng=pt-BR'
- }
- };
-
- it('checks if param included in query parameters', () => {
- expect(Util.hasQueryParameter('auth-error')).toBe(true);
- });
-
- it('checks if param not included in query parameters', () => {
- expect(Util.hasQueryParameter('error')).toBe(false);
- });
- });
-});