Skip to content

Commit

Permalink
Merge pull request #10855 from qmonmert/angimprovetest
Browse files Browse the repository at this point in the history
Angular: simplify test
  • Loading branch information
pascalgrimaud authored Sep 18, 2024
2 parents a8924d9 + 4cbfcfd commit f611e3e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ describe('HealthComponent', () => {
);
});

it('should call checkHealth on refresh', done => {
it('should call checkHealth on refresh', () => {
const health: Health = { status: 'UP', components: { mail: { status: 'UP', details: { mailDetail: 'mail' } } } };
jest.spyOn(service, 'checkHealth').mockImplementation(() => of(health));

comp.refresh();
done();

expect(service.checkHealth).toHaveBeenCalled();
});
Expand Down

0 comments on commit f611e3e

Please sign in to comment.