@@ -2,30 +2,30 @@ import { TestBed, async } from '@angular/core/testing';
2
2
import { AppComponent } from './app.component' ;
3
3
4
4
describe ( 'AppComponent' , ( ) => {
5
- beforeEach ( async ( ( ) => {
6
- TestBed . configureTestingModule ( {
7
- declarations : [
8
- AppComponent
9
- ] ,
10
- } ) . compileComponents ( ) ;
11
- } ) ) ;
5
+ beforeEach ( async ( ( ) => {
6
+ TestBed . configureTestingModule ( {
7
+ declarations : [
8
+ AppComponent
9
+ ] ,
10
+ } ) . compileComponents ( ) ;
11
+ } ) ) ;
12
12
13
- it ( 'should create the app' , ( ) => {
14
- const fixture = TestBed . createComponent ( AppComponent ) ;
15
- const app = fixture . debugElement . componentInstance ;
16
- expect ( app ) . toBeTruthy ( ) ;
17
- } ) ;
13
+ it ( 'should create the app' , ( ) => {
14
+ const fixture = TestBed . createComponent ( AppComponent ) ;
15
+ const app = fixture . debugElement . componentInstance ;
16
+ expect ( app ) . toBeTruthy ( ) ;
17
+ } ) ;
18
18
19
- it ( `should have as title 'daming-core-ui'` , ( ) => {
20
- const fixture = TestBed . createComponent ( AppComponent ) ;
21
- const app = fixture . debugElement . componentInstance ;
22
- expect ( app . title ) . toEqual ( 'daming-core-ui' ) ;
23
- } ) ;
19
+ it ( `should have as title 'daming-core-ui'` , ( ) => {
20
+ const fixture = TestBed . createComponent ( AppComponent ) ;
21
+ const app = fixture . debugElement . componentInstance ;
22
+ expect ( app . title ) . toEqual ( 'daming-core-ui' ) ;
23
+ } ) ;
24
24
25
- it ( 'should render title in a h1 tag' , ( ) => {
26
- const fixture = TestBed . createComponent ( AppComponent ) ;
27
- fixture . detectChanges ( ) ;
28
- const compiled = fixture . debugElement . nativeElement ;
29
- expect ( compiled . querySelector ( 'h1' ) . textContent ) . toContain ( 'Welcome to daming-core-ui!' ) ;
30
- } ) ;
25
+ it ( 'should render title in a h1 tag' , ( ) => {
26
+ const fixture = TestBed . createComponent ( AppComponent ) ;
27
+ fixture . detectChanges ( ) ;
28
+ const compiled = fixture . debugElement . nativeElement ;
29
+ expect ( compiled . querySelector ( 'h1' ) . textContent ) . toContain ( 'Welcome to daming-core-ui!' ) ;
30
+ } ) ;
31
31
} ) ;
0 commit comments