Advertisement
Guest User

import { LayoutModule } from '@angular/cdk/layout'; import {

a guest
Jun 11th, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. import { LayoutModule } from '@angular/cdk/layout';
  2. import { async, ComponentFixture, TestBed } from '@angular/core/testing';
  3. import { NoopAnimationsModule } from '@angular/platform-browser/animations';
  4.  
  5. import { NavigationBarComponent } from './navigation-bar.component';
  6. import {MatButtonModule} from "@angular/material";
  7. import {MatIconModule} from "@angular/material/typings/icon";
  8. import {MatListModule} from "@angular/material/typings/list";
  9. import {MatSidenavModule} from "@angular/material/typings/sidenav";
  10. import {MatToolbarModule} from "@angular/material/typings/toolbar";
  11.  
  12. describe('NavigationBarComponent', () => {
  13. let component: NavigationBarComponent;
  14. let fixture: ComponentFixture<NavigationBarComponent>;
  15.  
  16. beforeEach(async(() => {
  17. TestBed.configureTestingModule({
  18. declarations: [NavigationBarComponent],
  19. imports: [
  20. NoopAnimationsModule,
  21. LayoutModule,
  22. MatButtonModule,
  23. MatIconModule,
  24. MatListModule,
  25. MatSidenavModule,
  26. MatToolbarModule
  27. ]
  28. }).compileComponents();
  29. }));
  30.  
  31. beforeEach(() => {
  32. fixture = TestBed.createComponent(NavigationBarComponent);
  33. component = fixture.componentInstance;
  34. fixture.detectChanges();
  35. });
  36.  
  37. it('should compile', () => {
  38. expect(component).toBeTruthy();
  39. });
  40. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement