From 4da4d8c9d23e7e4399767c7d66e8986926f4be40 Mon Sep 17 00:00:00 2001 From: Douglas Webster Date: Sun, 11 Jun 2017 16:04:54 +0100 Subject: [PATCH] Corrected travis.yml to enable lint type checking Also corrected two files failling linting. --- .travis.yml | 3 +-- .../carousel-sample/carousel-sample.component.spec.ts | 2 +- src/app/shared/sidebar/sidebar.component.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index eac8156..c033095 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,8 +30,7 @@ branches: before_script: script: - - ng lint - - ng test --no-progress -sr + - ng lint --type-check - ng test --no-progress -sr -cc after_success: diff --git a/src/app/dashboard/bs-components/carousel-sample/carousel-sample.component.spec.ts b/src/app/dashboard/bs-components/carousel-sample/carousel-sample.component.spec.ts index c72aebc..e6d9f45 100644 --- a/src/app/dashboard/bs-components/carousel-sample/carousel-sample.component.spec.ts +++ b/src/app/dashboard/bs-components/carousel-sample/carousel-sample.component.spec.ts @@ -31,7 +31,7 @@ describe('CarouselSampleComponent', () => { fixture.detectChanges(); console.log(component); - + expect(component).toBeTruthy(); expect(component).not.toBeTruthy(); }); diff --git a/src/app/shared/sidebar/sidebar.component.ts b/src/app/shared/sidebar/sidebar.component.ts index af67354..fa14404 100644 --- a/src/app/shared/sidebar/sidebar.component.ts +++ b/src/app/shared/sidebar/sidebar.component.ts @@ -66,7 +66,7 @@ export class SidebarComponent implements OnInit { mergeMenus() { this.menuList = []; - + this.remoteMenuList.map(x => { this.menuList.push(x); });