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 f909591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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
2 changes: 0 additions & 2 deletions tests/lib/Service/OpenProjectAPIServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1980,12 +1980,10 @@ public function testRequestClientServerException(
$this->createMock(IUserManager::class),
$this->createMock(IGroupManager::class),
$this->createMock(IAppManager::class),
$this->createMock(IDBConnection::class),
$this->createMock(IProvider::class),
$this->createMock(ISecureRandom::class),
$this->createMock(IEventDispatcher::class),
$this->createMock(ISubAdmin::class),
$this->createMock(IMimeTypeLoader::class)
);

$response = $service->request('', '', []);
Expand Down

0 comments on commit f909591

Please sign in to comment.