diff options
Diffstat (limited to 'spec/frontend/search/sidebar/utils_spec.js')
-rw-r--r-- | spec/frontend/search/sidebar/utils_spec.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/frontend/search/sidebar/utils_spec.js b/spec/frontend/search/sidebar/utils_spec.js new file mode 100644 index 00000000000..652d32c836e --- /dev/null +++ b/spec/frontend/search/sidebar/utils_spec.js @@ -0,0 +1,10 @@ +import { convertFiltersData } from '~/search/sidebar/utils'; +import { TEST_RAW_BUCKETS, TEST_FILTER_DATA } from '../mock_data'; + +describe('Global Search sidebar utils', () => { + describe('convertFiltersData', () => { + it('converts raw buckets to array', () => { + expect(convertFiltersData(TEST_RAW_BUCKETS)).toStrictEqual(TEST_FILTER_DATA); + }); + }); +}); |