diff options
| author | Tulio Casagrande <tuliocasagrande@gmail.com> | 2017-02-24 15:53:06 -0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-24 15:53:06 -0300 | 
| commit | f783cbba382433c122e19a7231ebe17cc1ae7e5b (patch) | |
| tree | 0f29f48029cdbc6bb53aa80ea6fa8862732b7459 /web-ui/test/unit/util.spec.js | |
| parent | d77d9c41e5a5b791cf54082f0f1ae83699f0bc95 (diff) | |
| parent | ef173d95b22154ee72c685cd6d5b04e9473dc988 (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.js | 20 | 
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); -    }); -  }); -}); | 
