From 02d174036d1a55e188c4aa198b82157097cae45c Mon Sep 17 00:00:00 2001 From: JanAckermann Date: Thu, 21 Apr 2022 14:29:22 +0200 Subject: [PATCH] Add mutation tests --- .../web-app-files/tests/unit/store/mutations.spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/web-app-files/tests/unit/store/mutations.spec.js b/packages/web-app-files/tests/unit/store/mutations.spec.js index d0d7c92bcdb..745f3048b45 100644 --- a/packages/web-app-files/tests/unit/store/mutations.spec.js +++ b/packages/web-app-files/tests/unit/store/mutations.spec.js @@ -85,6 +85,15 @@ describe('vuex store mutations', () => { expect(state.areHiddenFilesShown).toEqual(false) }) + it('SET_FILE_EXTENSIONS_VISIBILITY', () => { + const state = { areFileExtensionsShown: true } + const { SET_FILE_EXTENSIONS_VISIBILITY } = mutations + + SET_FILE_EXTENSIONS_VISIBILITY(state, false) + + expect(state.areFileExtensionsShown).toEqual(false) + }) + describe('CURRENT_FILE_OUTGOING_SHARES_REMOVE', () => { it('removes an outgoing user share', () => { const shareToRemove = { id: 1, shareType: ShareTypes.user.value }