Skip to content

Commit

Permalink
add return when spying on deleteAdminUsersDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard-Pentecost committed Jul 21, 2022
1 parent 76bec5c commit b927f59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b927f59

Please sign in to comment.