OwenKelvin/Angular-School-Management-System

View on GitHub
src/app/shared/snackbar/snackbar.component.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SnackBarComponent } from './snackbar.component';
import { CustomMaterialModule } from '../custom-material/custom-material.module';
import { StoreModule } from '@ngrx/store';
import { reducer } from 'src/app/store/reducers';

describe('SnackbarComponent', () => {
  let component: SnackBarComponent;
  let fixture: ComponentFixture<SnackBarComponent>;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [CustomMaterialModule, StoreModule.forRoot(reducer)],
      declarations: [SnackBarComponent]
    }).compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(SnackBarComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});