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();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(AppComponent);
|
||||
app = fixture.componentInstance;
|
||||
de = fixture.debugElement;
|
||||
appDocument = de.nativeElement;
|
||||
}));
|
||||
});
|
||||
|
||||
it('should create the app', async(() => {
|
||||
expect(app).toBeTruthy();
|
||||
|
|
Reference in a new issue