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

boards_util_spec.js « boards « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0feb1411003ee2b884a0b142b8b59edce53e3dca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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',
    });
  });
});