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
13 lines (10 loc) • 364 B
JavaScript
var <%- className %> = require('./<%- name %>');
var ngTest = require('@angular/core/testing');
describe('<%- pipeName %> pipe', function () {
beforeEach(function () {
ngTest.addProviders([<%- className %>]);
});
it('should...', ngTest.inject([<%- className %>], function (pipe) {
expect(pipe.transform('fountain')).toEqual('FOUNTAIN');
}));
});