File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 1+ import { TestBed } from '@angular/core/testing' ;
2+ import { provideRouter } from '@angular/router' ;
3+ import { provideLocationMocks } from '@angular/common/testing' ;
4+
5+ import { AppComponent } from './app.component' ;
6+
7+ describe ( 'App' , ( ) => {
8+ beforeEach ( async ( ) => {
9+ await TestBed . configureTestingModule ( {
10+ imports : [ AppComponent ] ,
11+ providers : [ provideRouter ( [ ] ) , provideLocationMocks ( ) ] ,
12+ } ) . compileComponents ( ) ;
13+ } ) ;
14+
15+ it ( 'should create the app' , ( ) => {
16+ const fixture = TestBed . createComponent ( AppComponent ) ;
17+ const app = fixture . componentInstance ;
18+ expect ( app ) . toBeTruthy ( ) ;
19+ } ) ;
20+ } ) ;
Original file line number Diff line number Diff line change 3030 "strictInjectionParameters" : true ,
3131 "strictInputAccessModifiers" : true ,
3232 "strictTemplates" : true
33- }
33+ },
34+ "references" : [
35+ { "path" : " tsconfig.spec.json" }
36+ ]
3437}
You can’t perform that action at this time.
0 commit comments