diff --git a/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.spec.ts b/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.spec.ts index 01184c887dd8..dad56f4101ee 100644 --- a/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.spec.ts +++ b/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.spec.ts @@ -1,16 +1,16 @@ import { - it, + beforeEachProviders, describe, expect, inject, - beforeEachProviders + it } from '@angular/core/testing'; -import { <%= classifiedModuleName %> } from './<%= dasherizedModuleName %>.pipe'; +import { <%= classifiedModuleName %>Pipe } from './<%= dasherizedModuleName %>.pipe'; -describe('<%= classifiedModuleName %> Pipe', () => { - beforeEachProviders(() => [<%= classifiedModuleName%>]); +describe('Pipe: <%= classifiedModuleName %>', () => { + beforeEachProviders(() => [<%= classifiedModuleName%>Pipe]); - it('should transform the input', inject([<%= classifiedModuleName %>], (pipe: <%= classifiedModuleName %>) => { + it('should transform the input', inject([<%= classifiedModuleName %>Pipe], (pipe: <%= classifiedModuleName %>Pipe) => { expect(pipe.transform(true)).toBe(null); })); }); diff --git a/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.ts b/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.ts index 60b80b44829a..2813a99446ed 100644 --- a/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.ts +++ b/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.ts @@ -3,7 +3,7 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: '<%= camelizedModuleName %>' }) -export class <%= classifiedModuleName %> implements PipeTransform { +export class <%= classifiedModuleName %>Pipe implements PipeTransform { transform(value: any, args?: any): any { return null;