You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import {async, TestBed} from '@angular/core/testing';
|
|
|
|
import {AppComponent} from './app.component';
|
|
|
|
|
|
|
|
describe('AppComponent', () => {
|
|
|
|
beforeEach(async(() => {
|
|
|
|
TestBed.configureTestingModule({
|
|
|
|
declarations: [
|
|
|
|
AppComponent
|
|
|
|
],
|
|
|
|
}).compileComponents();
|
|
|
|
}));
|
|
|
|
|
|
|
|
it('should create the app', () => {
|
|
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
|
|
const app = fixture.debugElement.componentInstance;
|
|
|
|
expect(app).toBeTruthy();
|
|
|
|
});
|
|
|
|
|
|
|
|
it(`should have as title 'greenvironment'`, () => {
|
|
|
|
const fixture = TestBed.createComponent(AppComponent);
|
|
|
|
const app = fixture.debugElement.componentInstance;
|
|
|
|
expect(app.title).toEqual('greenvironment');
|
|
|
|
});
|
|
|
|
});
|