Jasmine Framework

9 views
Skip to first unread message

donse...@gmail.com

unread,
May 14, 2018, 3:07:56 PM5/14/18
to Angular and AngularJS discussion
Need explanation on the below testing code.

import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
}));


it('should create the app', async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
Reply all
Reply to author
Forward
0 new messages