Merge branch 'unify-filtered_search_token_keys_spec.js' into 'master'

Unify filtered_search_token_keys_spec.js

See merge request gitlab-org/gitlab-ce!20094
This commit is contained in:
Phil Hughes 2018-06-25 08:16:54 +00:00
commit ee62f1b3b8
1 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,17 @@ describe('Filtered Search Token Keys', () => {
});
});
describe('getKeys', () => {
it('should return keys', () => {
const getKeys = FilteredSearchTokenKeys.getKeys();
const keys = FilteredSearchTokenKeys.get().map(i => i.key);
keys.forEach((key, i) => {
expect(key).toEqual(getKeys[i]);
});
});
});
describe('getConditions', () => {
let conditions;