import { DashboardComponent } from './dashboard.component';
import { DashboardModule } from './dashboard.module';
-import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
import { HttpClientTestingModule } from '@angular/common/http/testing';
describe('DashboardComponent', () => {
it('should create', () => {
expect(component).toBeTruthy();
});
+
+ it('should test the closeAlert method', () =>{
+ component.alerts=[1,2,3,4,5];
+ component.closeAlert(2);
+ expect(component.alerts).toEqual([1,3,4,5]);
+ })
+
});