Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
  • Loading branch information
SwikritiT committed Nov 3, 2023
1 parent 7dd3da4 commit 839c914
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/jest/components/tab/SearchInput.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,9 @@ describe('SearchInput.vue', () => {
})
await wrapper.vm.$nextTick()
wrapper.vm.onCreateWorkPackageEvent(workpackageCreationEventData)
await wrapper.vm.$nextTick()
for (let i = 0; i < 5; i++) {
await wrapper.vm.$nextTick()
}
expect(dialogs.showSuccess).toBeCalledTimes(2)
expect(dialogs.showSuccess).toBeCalledWith('Work package created successfully.')
expect(dialogs.showSuccess).toBeCalledWith('Link to work package created successfully!')
Expand Down

0 comments on commit 839c914

Please sign in to comment.