summaryrefslogtreecommitdiffstats
path: root/src/app/app.component.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/app.component.spec.ts')
-rw-r--r--src/app/app.component.spec.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts
index 9eedbcb..378ab8e 100644
--- a/src/app/app.component.spec.ts
+++ b/src/app/app.component.spec.ts
@@ -9,7 +9,7 @@ under the Apache License, Version 2.0 (the License);
you may not use this software except in compliance with the License.
You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -21,8 +21,6 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
============LICENSE_END============================================
*/
-/* tslint:disable:no-unused-variable */
-
import {async, TestBed} from '@angular/core/testing';
import {AppComponent} from './app.component';
import {NO_ERRORS_SCHEMA} from '@angular/core';
@@ -54,8 +52,10 @@ describe('AppComponent', () => {
it(`should have as title 'app works!'`, async(() => {
const fixture = TestBed.createComponent(AppComponent);
- const app = fixture.debugElement.componentInstance;
+ const app = fixture.componentInstance;
+ app.ngOnInit();
expect(app.title).toEqual('app works!');
+ app.ngOnDestroy();
}));
});