generator-fountain-angular2
Version:
Yeoman Fountain generator to scaffold a webapp with Angular 2 written in ES6 (Babel), TypeScript through Webpack or SystemJS including tools Gulp 4, ESLint, Browsersync and Karma
21 lines (18 loc) • 612 B
JavaScript
var FooterComponent = require('./footer');
var ngTest = require('@angular/core/testing');
describe('footer component', function () {
beforeEach(ngTest.async(function () {
ngTest.TestBed.configureTestingModule({
declarations: [
FooterComponent
]
});
ngTest.TestBed.compileComponents();
}));
it('should render \'FountainJS team\'', function () {
var fixture = ngTest.TestBed.createComponent(FooterComponent);
fixture.detectChanges();
var footer = fixture.nativeElement;
expect(footer.querySelector('a').textContent.trim()).toBe('FountainJS team');
});
});