debian-mirror-gitlab/spec/frontend/search/sidebar/utils_spec.js
2023-04-23 21:23:45 +05:30

10 lines
368 B
JavaScript

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);
});
});
});