Moved assignments out of beforeEach as per test guidelines
This commit is contained in:
parent
d7bb20870e
commit
371f019595
1 changed files with 3 additions and 1 deletions
|
@ -25,12 +25,14 @@ describe('AppComponent', () => {
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(AppComponent);
|
fixture = TestBed.createComponent(AppComponent);
|
||||||
app = fixture.componentInstance;
|
app = fixture.componentInstance;
|
||||||
de = fixture.debugElement;
|
de = fixture.debugElement;
|
||||||
appDocument = de.nativeElement;
|
appDocument = de.nativeElement;
|
||||||
}));
|
});
|
||||||
|
|
||||||
it('should create the app', async(() => {
|
it('should create the app', async(() => {
|
||||||
expect(app).toBeTruthy();
|
expect(app).toBeTruthy();
|
||||||
|
|
Reference in a new issue