Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils_spec.js « sidebar « search « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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);
    });
  });
});