From 3ea57b7f7862f712b2c5ab31852188f3ed90b5c6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 11 Oct 2021 16:31:20 +0200 Subject: [PATCH] Notifications level is not in the sidebar anymore Signed-off-by: Joas Schilling --- .../ConversationsList/Conversation.spec.js | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/src/components/LeftSidebar/ConversationsList/Conversation.spec.js b/src/components/LeftSidebar/ConversationsList/Conversation.spec.js index 6e3afd4f2e..ff82bbdd28 100644 --- a/src/components/LeftSidebar/ConversationsList/Conversation.spec.js +++ b/src/components/LeftSidebar/ConversationsList/Conversation.spec.js @@ -44,7 +44,6 @@ describe('Conversation.vue', () => { type: CONVERSATION.TYPE.GROUP, displayName: 'conversation one', isFavorite: false, - notificationLevel: 0, lastMessage: { actorId: 'user-id-alice', actorDisplayName: 'Alice Wonderland', @@ -418,36 +417,6 @@ describe('Conversation.vue', () => { expect(wrapper.emitted().click).toBeTruthy() }) - describe('notification level', () => { - /** - * @param {string} actionName The label of the notification level to select - * @param {number} level The notification level to select - */ - async function testSetNotificationLevel(actionName, level) { - const setNotificationLevelAction = jest.fn().mockResolvedValueOnce() - testStoreConfig.modules.conversationsStore.actions.setNotificationLevel = setNotificationLevelAction - - const action = shallowMountAndGetAction(actionName) - expect(action.exists()).toBe(true) - - await action.find('button').trigger('click') - - expect(setNotificationLevelAction).toHaveBeenCalledWith(expect.anything(), { token: TOKEN, notificationLevel: level }) - } - - test('sets notification to all messages', async () => { - await testSetNotificationLevel('All messages', 1) - }) - - test('sets notification to at-mentions only', async () => { - await testSetNotificationLevel('@-mentions only', 2) - }) - - test('sets notification to off', async () => { - await testSetNotificationLevel('Off', 3) - }) - }) - describe('leaving conversation', () => { test('leaves conversation', async () => { const actionHandler = jest.fn()