File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,16 +7,6 @@ Unit tests for the App component. We need to test...
77
88/*******************************************/
99
10- // --------------- Child component stubs -----------------
11-
12- import { Component } from '@angular/core' ;
13-
14- @Component ( {
15- selector : 'battle' ,
16- template : ''
17- } )
18- class FakeBattle { }
19-
2010// --------------- Service mocks ---------------
2111
2212import * as sinon from 'sinon' ;
@@ -29,12 +19,14 @@ const fakeAuthService = {
2919// --------------- Test config ---------------
3020
3121import { CommonModule } from '@angular/common' ;
22+ import { NO_ERRORS_SCHEMA } from '@angular/core' ;
3223import { AuthService } from '../services/authservice' ;
3324import { AppComponent } from '../components/app' ;
3425
3526const testModuleConfig = {
3627 imports : [ CommonModule ] ,
37- declarations : [ AppComponent , FakeBattle ] ,
28+ declarations : [ AppComponent ] ,
29+ schemas : [ NO_ERRORS_SCHEMA ] , // to prevent complaints about unknown 'battle' element
3830 providers : [ { provide : AuthService , useValue : fakeAuthService } ]
3931}
4032
You can’t perform that action at this time.
0 commit comments