debian-mirror-gitlab/spec/frontend/boards/boards_util_spec.js
2021-03-11 19:13:27 +05:30

17 lines
431 B
JavaScript

import { transformNotFilters } from '~/boards/boards_util';
describe('transformNotFilters', () => {
const filters = {
'not[labelName]': ['label'],
'not[assigneeUsername]': 'assignee',
};
it('formats not filters, transforms epicId to fullEpicId', () => {
const result = transformNotFilters(filters);
expect(result).toEqual({
labelName: ['label'],
assigneeUsername: 'assignee',
});
});
});