diff --git a/src/app/features/admin/admin-users/admin-account-view/admin-account-view.component.spec.ts b/src/app/features/admin/admin-users/admin-account-view/admin-account-view.component.spec.ts index cbb00d4374..2656a13f2a 100644 --- a/src/app/features/admin/admin-users/admin-account-view/admin-account-view.component.spec.ts +++ b/src/app/features/admin/admin-users/admin-account-view/admin-account-view.component.spec.ts @@ -229,7 +229,7 @@ describe('AdminAccountViewComponent', () => { it('should call deleteAdminUserDetails with the the user id', async () => { const { component, fixture, getByText, adminUsersService } = await setup(); - const deleteAdminSpy = spyOn(adminUsersService, 'deleteAdminUserDetails'); + const deleteAdminSpy = spyOn(adminUsersService, 'deleteAdminUserDetails').and.returnValue(of({})); const deleteLink = getByText('Delete this admin user'); fireEvent.click(deleteLink); fixture.detectChanges();