From 97590373cbceadc2a98700f8b76e941c9375c368 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 17 Mar 2022 11:56:11 +0100 Subject: [PATCH] change modal test --- .../src/components/TransactionLinks/TransactionLink.spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/components/TransactionLinks/TransactionLink.spec.js b/frontend/src/components/TransactionLinks/TransactionLink.spec.js index d2c226026..f3eaf72ce 100644 --- a/frontend/src/components/TransactionLinks/TransactionLink.spec.js +++ b/frontend/src/components/TransactionLinks/TransactionLink.spec.js @@ -89,9 +89,7 @@ describe('TransactionLink', () => { const spy = jest.spyOn(wrapper.vm.$bvModal, 'msgBoxConfirm') spy.mockImplementation(() => Promise.resolve('some value')) wrapper.vm.deleteLink() - wrapper.vm.$nextTick(() => { - expect(spy).toHaveBeenCalled() - }) + expect(spy).toHaveBeenCalled() }) it('calls the API', () => {