debian-mirror-gitlab/spec/frontend/search/sidebar/utils_spec.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
368 B
JavaScript
Raw Normal View History

2023-04-23 21:23:45 +05:30
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);
});
});
});