From e57364c4b74111a92854f9002964d7aba054b789 Mon Sep 17 00:00:00 2001 From: Stephen Cavaliere Date: Fri, 20 May 2016 14:04:22 -0400 Subject: [PATCH] fix(template): Update pipe template to include Pipe in name --- .../pipe/files/__path__/__name__.pipe.spec.ts | 12 ++++++------ .../blueprints/pipe/files/__path__/__name__.pipe.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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;