Skip to content

Commit 7aba078

Browse files
test: remove async hook import from signers spec
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent e8936b7 commit 7aba078

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/tests/components/Signers/Signers.spec.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import { beforeAll, beforeEach, describe, expect, it, vi } from 'vitest'
6+
import { beforeEach, describe, expect, it, vi } from 'vitest'
77
import { shallowMount } from '@vue/test-utils'
88
import type { VueWrapper } from '@vue/test-utils'
99
import { createPinia, setActivePinia } from 'pinia'
1010
import type { Pinia } from 'pinia'
11-
type SignersComponent = typeof import('../../../components/Signers/Signers.vue').default
12-
let Signers: SignersComponent
11+
import Signers from '../../../components/Signers/Signers.vue'
1312
import { useFilesStore } from '../../../store/files.js'
1413
import type { SignatureFlowValue } from '../../../types/index'
1514

@@ -49,10 +48,6 @@ vi.mock('@nextcloud/initial-state', () => ({
4948
loadState: vi.fn(),
5049
}))
5150

52-
beforeAll(async () => {
53-
;({ default: Signers } = await import('../../../components/Signers/Signers.vue'))
54-
})
55-
5651

5752
describe('Signers', () => {
5853
let wrapper: SignersWrapper | null

0 commit comments

Comments
 (0)