commit a9af4c081b7f1765f7ba426c81398191815239ba
parent 364f2ed0457cd43232c77485d3783add7b8df679
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 20 May 2018 11:31:11 +0200
Disable unit tests and start chrome for e2e tests
Diffstat:
15 files changed, 13 insertions(+), 327 deletions(-)
diff --git a/.travis.yml b/.travis.yml
@@ -10,8 +10,11 @@ node_js:
- 8
- 9
+before_install:
+ - # start your web application and listen on `localhost`
+ - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
+
before_script:
- - npm install --global yarn
- yarn global add @angular/cli
script:
diff --git a/src/app/api.service.spec.ts b/src/app/api.service.spec.ts
@@ -1,15 +0,0 @@
-import { TestBed, inject } from '@angular/core/testing';
-
-import { ApiService } from './api.service';
-
-describe('ApiService', () => {
- beforeEach(() => {
- TestBed.configureTestingModule({
- providers: [ApiService]
- });
- });
-
- it('should be created', inject([ApiService], (service: ApiService) => {
- expect(service).toBeTruthy();
- }));
-});
diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts
@@ -1,27 +0,0 @@
-import { TestBed, async } from '@angular/core/testing';
-import { AppComponent } from './app.component';
-describe('AppComponent', () => {
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [
- AppComponent
- ],
- }).compileComponents();
- }));
- it('should create the app', async(() => {
- const fixture = TestBed.createComponent(AppComponent);
- const app = fixture.debugElement.componentInstance;
- expect(app).toBeTruthy();
- }));
- it(`should have as title 'app'`, async(() => {
- const fixture = TestBed.createComponent(AppComponent);
- const app = fixture.debugElement.componentInstance;
- expect(app.title).toEqual('app');
- }));
- it('should render title in a h1 tag', async(() => {
- const fixture = TestBed.createComponent(AppComponent);
- fixture.detectChanges();
- const compiled = fixture.debugElement.nativeElement;
- expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');
- }));
-});
diff --git a/src/app/callback/twitter/twitter.component.spec.ts b/src/app/callback/twitter/twitter.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { TwitterComponent } from './twitter.component';
-
-describe('TwitterComponent', () => {
- let component: TwitterComponent;
- let fixture: ComponentFixture<TwitterComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ TwitterComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(TwitterComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/login/login.component.spec.ts b/src/app/login/login.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { LoginComponent } from './login.component';
-
-describe('LoginComponent', () => {
- let component: LoginComponent;
- let fixture: ComponentFixture<LoginComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ LoginComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(LoginComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/main/main.component.spec.ts b/src/app/main/main.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { MainComponent } from './main.component';
-
-describe('MainComponent', () => {
- let component: MainComponent;
- let fixture: ComponentFixture<MainComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ MainComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(MainComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/navbar/navbar.component.spec.ts b/src/app/navbar/navbar.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { NavbarComponent } from './navbar.component';
-
-describe('NavbarComponent', () => {
- let component: NavbarComponent;
- let fixture: ComponentFixture<NavbarComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ NavbarComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(NavbarComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/paper/paper.component.spec.ts b/src/app/paper/paper.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { PaperComponent } from './paper.component';
-
-describe('PaperComponent', () => {
- let component: PaperComponent;
- let fixture: ComponentFixture<PaperComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ PaperComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(PaperComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/papers-list/papers-list.component.spec.ts b/src/app/papers-list/papers-list.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { PapersListComponent } from './papers-list.component';
-
-describe('PapersListComponent', () => {
- let component: PapersListComponent;
- let fixture: ComponentFixture<PapersListComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ PapersListComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(PapersListComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/papers/papers.component.spec.ts b/src/app/papers/papers.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { PapersComponent } from './papers.component';
-
-describe('PapersComponent', () => {
- let component: PapersComponent;
- let fixture: ComponentFixture<PapersComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ PapersComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(PapersComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/spinner/spinner.component.spec.ts b/src/app/spinner/spinner.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { SpinnerComponent } from './spinner.component';
-
-describe('SpinnerComponent', () => {
- let component: SpinnerComponent;
- let fixture: ComponentFixture<SpinnerComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ SpinnerComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(SpinnerComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/tweet-list/tweet-list.component.spec.ts b/src/app/tweet-list/tweet-list.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { TweetListComponent } from './tweet-list.component';
-
-describe('TweetListComponent', () => {
- let component: TweetListComponent;
- let fixture: ComponentFixture<TweetListComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ TweetListComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(TweetListComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/user/profile/profile.component.spec.ts b/src/app/user/profile/profile.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { ProfileComponent } from './profile.component';
-
-describe('ProfileComponent', () => {
- let component: ProfileComponent;
- let fixture: ComponentFixture<ProfileComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ ProfileComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(ProfileComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/src/app/user/settings/settings.component.spec.ts b/src/app/user/settings/settings.component.spec.ts
@@ -1,25 +0,0 @@
-import { async, ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { SettingsComponent } from './settings.component';
-
-describe('SettingsComponent', () => {
- let component: SettingsComponent;
- let fixture: ComponentFixture<SettingsComponent>;
-
- beforeEach(async(() => {
- TestBed.configureTestingModule({
- declarations: [ SettingsComponent ]
- })
- .compileComponents();
- }));
-
- beforeEach(() => {
- fixture = TestBed.createComponent(SettingsComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/yarn.lock b/yarn.lock
@@ -2052,7 +2052,7 @@ code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
-codelyzer@^4.0.1:
+codelyzer@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/codelyzer/-/codelyzer-4.3.0.tgz#6bf3ba68efd9d655a451ecaa14a2852001a43dfb"
dependencies:
@@ -2246,7 +2246,7 @@ core-js@^1.0.0:
version "1.2.7"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
-core-js@^2.2.0, core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.5.4:
+core-js@^2.2.0, core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.5.6:
version "2.5.6"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.6.tgz#0fe6d45bf3cac3ac364a9d72de7576f4eb221b9d"
@@ -3048,7 +3048,7 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2:
dependencies:
homedir-polyfill "^1.0.1"
-express@^4.16.2:
+express@^4.16.2, express@^4.16.3:
version "4.16.3"
resolved "https://registry.yarnpkg.com/express/-/express-4.16.3.tgz#6af8a502350db3246ecc4becf6b5a34d22f7ed53"
dependencies:
@@ -4769,7 +4769,7 @@ jszip@^3.1.3:
pako "~1.0.2"
readable-stream "~2.0.6"
-karma-chrome-launcher@^2.1.1:
+karma-chrome-launcher@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-2.2.0.tgz#cf1b9d07136cc18fe239327d24654c3dbc368acf"
dependencies:
@@ -4803,7 +4803,7 @@ karma-source-map-support@^1.2.0:
dependencies:
source-map-support "^0.5.5"
-karma@^2.0.0:
+karma@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/karma/-/karma-2.0.2.tgz#4d2db9402850a66551fa784b0164fb0824ed8c4b"
dependencies:
@@ -5529,7 +5529,7 @@ next-tick@1:
version "1.0.0"
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"
-ng-http-loader@^1.0.0:
+ng-http-loader@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/ng-http-loader/-/ng-http-loader-1.0.2.tgz#1068d86e5f6d730c598d83321b6ff2e3a2f5ee4a"
@@ -6552,7 +6552,7 @@ range-parser@^1.0.3, range-parser@^1.2.0, range-parser@~1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e"
-raven-js@^3.22.3:
+raven-js@^3.25.2:
version "3.25.2"
resolved "https://registry.yarnpkg.com/raven-js/-/raven-js-3.25.2.tgz#d3ad1c694f70855dda6f705204ee6ab76ba62884"
@@ -7975,7 +7975,7 @@ trim-right@^1.0.1:
dependencies:
glob "^6.0.4"
-ts-loader@^4.0.0:
+ts-loader@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-4.3.0.tgz#4e3ba172783d1256d3a23bdfadde011a795fae9e"
dependencies:
@@ -8859,6 +8859,6 @@ yn@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a"
-zone.js@^0.8.24:
+zone.js@^0.8.26:
version "0.8.26"
resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.8.26.tgz#7bdd72f7668c5a7ad6b118148b4ea39c59d08d2d"