@@ -21,53 +21,59 @@ let comp: AppComponent;
2121let fixture : ComponentFixture < AppComponent > ;
2222
2323describe ( 'AppComponent & TestModule' , ( ) => {
24- beforeEach ( waitForAsync ( ( ) => {
25- TestBed . configureTestingModule ( {
26- declarations : [
27- AppComponent ,
28- RouterLinkDirectiveStub ,
29- BannerStubComponent ,
30- RouterOutletStubComponent ,
31- WelcomeStubComponent ,
32- ] ,
33- } )
34- . compileComponents ( )
35- . then ( ( ) => {
36- fixture = TestBed . createComponent ( AppComponent ) ;
37- comp = fixture . componentInstance ;
38- } ) ;
39- } ) ) ;
24+ beforeEach (
25+ waitForAsync ( ( ) => {
26+ TestBed . configureTestingModule ( {
27+ declarations : [
28+ AppComponent ,
29+ RouterLinkDirectiveStub ,
30+ BannerStubComponent ,
31+ RouterOutletStubComponent ,
32+ WelcomeStubComponent ,
33+ ] ,
34+ } )
35+ . compileComponents ( )
36+ . then ( ( ) => {
37+ fixture = TestBed . createComponent ( AppComponent ) ;
38+ comp = fixture . componentInstance ;
39+ } ) ;
40+ } ) ,
41+ ) ;
4042 tests ( ) ;
4143} ) ;
4244
4345describe ( 'AppComponent & NO_ERRORS_SCHEMA' , ( ) => {
44- beforeEach ( waitForAsync ( ( ) => {
45- TestBed . configureTestingModule ( {
46- declarations : [ AppComponent , BannerStubComponent , RouterLinkDirectiveStub ] ,
47- schemas : [ NO_ERRORS_SCHEMA ] ,
48- } )
49- . compileComponents ( )
50- . then ( ( ) => {
51- fixture = TestBed . createComponent ( AppComponent ) ;
52- comp = fixture . componentInstance ;
53- } ) ;
54- } ) ) ;
46+ beforeEach (
47+ waitForAsync ( ( ) => {
48+ TestBed . configureTestingModule ( {
49+ declarations : [ AppComponent , BannerStubComponent , RouterLinkDirectiveStub ] ,
50+ schemas : [ NO_ERRORS_SCHEMA ] ,
51+ } )
52+ . compileComponents ( )
53+ . then ( ( ) => {
54+ fixture = TestBed . createComponent ( AppComponent ) ;
55+ comp = fixture . componentInstance ;
56+ } ) ;
57+ } ) ,
58+ ) ;
5559 tests ( ) ;
5660} ) ;
5761
5862describe ( 'AppComponent & AppModule' , ( ) => {
59- beforeEach ( waitForAsync ( ( ) => {
60- TestBed . configureTestingModule ( { imports : [ AppModule ] } )
61- . overrideModule ( AppModule , {
62- remove : { imports : [ AppRoutingModule ] } ,
63- add : { declarations : [ RouterLinkDirectiveStub , RouterOutletStubComponent ] } ,
64- } )
65- . compileComponents ( )
66- . then ( ( ) => {
67- fixture = TestBed . createComponent ( AppComponent ) ;
68- comp = fixture . componentInstance ;
69- } ) ;
70- } ) ) ;
63+ beforeEach (
64+ waitForAsync ( ( ) => {
65+ TestBed . configureTestingModule ( { imports : [ AppModule ] } )
66+ . overrideModule ( AppModule , {
67+ remove : { imports : [ AppRoutingModule ] } ,
68+ add : { declarations : [ RouterLinkDirectiveStub , RouterOutletStubComponent ] } ,
69+ } )
70+ . compileComponents ( )
71+ . then ( ( ) => {
72+ fixture = TestBed . createComponent ( AppComponent ) ;
73+ comp = fixture . componentInstance ;
74+ } ) ;
75+ } ) ,
76+ ) ;
7177
7278 tests ( ) ;
7379} ) ;
0 commit comments