diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2016-12-15 21:54:24 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-01-10 01:01:29 +0300 |
commit | 776f1aaae4a8125f6f46ed4a095566a00ea2aa45 (patch) | |
tree | 2ba1c9d4d4c80616f88dc40cceaae3d353a5c322 /app/assets | |
parent | 89204c22f15720080f71e424e50bad9485a49172 (diff) |
Add specs for filtered search token keys
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/filtered_search/filtered_search_token_keys.js.es6 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/filtered_search/filtered_search_token_keys.js.es6 b/app/assets/javascripts/filtered_search/filtered_search_token_keys.js.es6 index a1830d13e5f..6bd9cb06362 100644 --- a/app/assets/javascripts/filtered_search/filtered_search_token_keys.js.es6 +++ b/app/assets/javascripts/filtered_search/filtered_search_token_keys.js.es6 @@ -44,6 +44,10 @@ return tokenKeys; } + static getConditions() { + return conditions; + } + static searchByKey(key) { return tokenKeys.find(tokenKey => tokenKey.key === key) || null; } |