Skip to content

Commit

Permalink
fix(template): Update pipe template to include Pipe in name
Browse files Browse the repository at this point in the history
Closes #869
  • Loading branch information
delasteve authored and hansl committed May 24, 2016
1 parent e1c1d20 commit c92f330
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.spec.ts
Original file line number Diff line number Diff line change
@@ -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);
}));
});
2 changes: 1 addition & 1 deletion addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c92f330

Please sign in to comment.