File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { TestBed , async } from '@angular/core/testing' ;
22import { AppComponent } from './app.component' ;
3- import { HttpClientTestingModule , HttpTestingController } from '@angular/common/http/testing'
3+ import { HttpClientTestingModule , HttpTestingController } from '@angular/common/http/testing' ;
44describe ( 'AppComponent' , ( ) => {
55 beforeEach ( async ( ( ) => {
66 TestBed . configureTestingModule ( {
@@ -30,7 +30,7 @@ describe('AppComponent', () => {
3030 const http = TestBed . get ( HttpTestingController ) ;
3131 const fixture = TestBed . createComponent ( AppComponent ) ;
3232 const app = fixture . debugElement . componentInstance ;
33- http . expectOne ( 'resource' ) . flush ( { id :'XYZ' , content :'Hello' } ) ;
33+ http . expectOne ( 'resource' ) . flush ( { id : 'XYZ' , content : 'Hello' } ) ;
3434 expect ( app . data . content ) . toContain ( 'Hello' ) ;
3535 } ) ) ;
3636} ) ;
You can’t perform that action at this time.
0 commit comments