summaryrefslogtreecommitdiff
path: root/spec/frontend/boards/stores/mutations_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/boards/stores/mutations_spec.js')
-rw-r--r--spec/frontend/boards/stores/mutations_spec.js15
1 files changed, 1 insertions, 14 deletions
diff --git a/spec/frontend/boards/stores/mutations_spec.js b/spec/frontend/boards/stores/mutations_spec.js
index 7d79993a0ee..1606ca09d8f 100644
--- a/spec/frontend/boards/stores/mutations_spec.js
+++ b/spec/frontend/boards/stores/mutations_spec.js
@@ -518,17 +518,6 @@ describe('Board Store Mutations', () => {
expect(state.boardItemsByListId[payload.listId]).toEqual(listState);
});
-
- it("updates the list's items count", () => {
- expect(state.boardLists['gid://gitlab/List/1'].issuesCount).toBe(1);
-
- mutations.ADD_BOARD_ITEM_TO_LIST(state, {
- itemId: mockIssue2.id,
- listId: mockList.id,
- });
-
- expect(state.boardLists['gid://gitlab/List/1'].issuesCount).toBe(2);
- });
});
describe('REMOVE_BOARD_ITEM_FROM_LIST', () => {
@@ -536,8 +525,7 @@ describe('Board Store Mutations', () => {
setBoardsListsState();
});
- it("removes an item from a list and updates the list's items count", () => {
- expect(state.boardLists['gid://gitlab/List/1'].issuesCount).toBe(1);
+ it('removes an item from a list', () => {
expect(state.boardItemsByListId['gid://gitlab/List/1']).toContain(mockIssue.id);
mutations.REMOVE_BOARD_ITEM_FROM_LIST(state, {
@@ -546,7 +534,6 @@ describe('Board Store Mutations', () => {
});
expect(state.boardItemsByListId['gid://gitlab/List/1']).not.toContain(mockIssue.id);
- expect(state.boardLists['gid://gitlab/List/1'].issuesCount).toBe(0);
});
});