feature/jenkins-ci (#1)
All checks were successful
Core Repos/Homepage/pipeline/head This commit looks good
All checks were successful
Core Repos/Homepage/pipeline/head This commit looks good
Build for production and run lint
This commit was merged in pull request #1.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
|
||||
import {ToolbarComponent} from './toolbar.component';
|
||||
import { MatSidenavModule } from "@angular/material/sidenav";
|
||||
import { MatToolbarModule } from "@angular/material/toolbar";
|
||||
import {RouterTestingModule} from "@angular/router/testing";
|
||||
import {Component} from "@angular/core";
|
||||
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||
import { MatToolbarModule } from '@angular/material/toolbar';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({template: ''})
|
||||
class DummyComponent {
|
||||
@@ -36,12 +36,12 @@ describe('ToolbarComponent', () => {
|
||||
});
|
||||
|
||||
it('should contain a material toolbar', () => {
|
||||
expect(fixture.debugElement.children[0].nativeElement.className).toBe("mat-drawer-container mat-sidenav-container")
|
||||
expect(fixture.debugElement.children[0].nativeElement.className).toBe('mat-drawer-container mat-sidenav-container');
|
||||
});
|
||||
|
||||
it('should contain 4 links, Home, Resume, Projects, Contact', () => {
|
||||
let debugElements = fixture.debugElement.queryAll((element) => {
|
||||
return element.nativeElement.className.indexOf("mat-toolbar") != -1;
|
||||
const debugElements = fixture.debugElement.queryAll((element) => {
|
||||
return element.nativeElement.className.indexOf('mat-toolbar') !== -1;
|
||||
});
|
||||
|
||||
expect(debugElements[0].children.length).toBe(4);
|
||||
|
||||
Reference in New Issue
Block a user