Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('should be stable for component OnInit', async(() => {
- const fixture = TestBed.createComponent(DemoComponent);
- fixture.componentInstance.ngOnInit();
- expect(fixture.isStable()).toBe(true);
- }));
- it('should be unstable for fixture OnInit', async(() => {
- const fixture = TestBed.createComponent(DemoComponent);
- fixture.detectChanges();
- expect(fixture.isStable()).toBe(false);
- }));
Add Comment
Please, Sign In to add comment