diff --git a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.spec.ts.mustache b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.spec.ts.mustache index effe87303dd..1be0af988b3 100644 --- a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.spec.ts.mustache +++ b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.spec.ts.mustache @@ -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', () => {