fix tests

This commit is contained in:
Moriz Wahl 2022-02-23 09:40:30 +01:00
parent e67427f8f1
commit 6aeb174532
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import Overlay from './Overlay.vue'
const localVue = global.localVue
const propsData = {
items: {},
item: {},
}
const mocks = {

View File

@ -132,8 +132,8 @@ describe('CreationConfirm', () => {
await wrapper.find('#overlay').findAll('button').at(0).trigger('click')
})
it('closes the overlay', () => {
expect(wrapper.find('#overlay').isVisible()).toBeFalsy()
it('closes the overlay', async () => {
expect(wrapper.find('#overlay').exists()).toBeFalsy()
})
it('still has 2 items in the table', () => {