summaryrefslogtreecommitdiff
path: root/spec/frontend/search/sidebar/utils_spec.js
blob: 652d32c836e9de4d219493985b209719be85e376 (plain)
1
2
3
4
5
6
7
8
9
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);
    });
  });
});