debian-mirror-gitlab/spec/frontend/boards/boards_util_spec.js

18 lines
431 B
JavaScript
Raw Normal View History

2021-03-11 19:13:27 +05:30
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',
});
});
});