From 371f0195959a2b35e03e172bcc9e9ed0335e5041 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Thu, 24 Aug 2017 17:20:46 +0100 Subject: [PATCH] Moved assignments out of beforeEach as per test guidelines --- src/app/app.component.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 1051610..ee489a6 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -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();