feature/jenkins-ci (#1)
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:
2020-04-18 17:33:39 +00:00
committed by Gitea
parent b85aca7c3e
commit 432ab5ddb3
10 changed files with 196 additions and 88 deletions

View File

@@ -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);