Skip to content

Commit

Permalink
Merge pull request #11601 from qmonmert/sonarangular
Browse files Browse the repository at this point in the history
Sonar/Angular: Assertions should be complete
  • Loading branch information
murdos authored Dec 18, 2024
2 parents 5700169 + 926bcc5 commit e5c99a7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ describe('HealthComponent', () => {
comp.ngOnInit();

expect(service.checkHealth).toHaveBeenCalled();
expect(
service.checkHealth().subscribe({
next: () => expect(comp.datasource).toEqual([{ details: { mailDetail: 'mail' }, key: 'mail', status: 'UP' }]),
}),
);

service.checkHealth().subscribe(() => {
expect(comp.datasource).toEqual([{ details: { mailDetail: 'mail' }, key: 'mail', status: 'UP' }]);
});
});

it('should call checkHealth on refresh', () => {
Expand Down

0 comments on commit e5c99a7

Please sign in to comment.