From 1a2325e9ba587938a33fec54f880d94767378ddd Mon Sep 17 00:00:00 2001 From: Mike Brocchi Date: Mon, 25 Apr 2016 13:46:44 -0400 Subject: [PATCH] chore: add consistent spacing in blueprints Fixes #512 --- .../component/files/__path__/__name__.component.spec.ts | 3 +-- .../directive/files/__path__/__name__.directive.spec.ts | 1 - addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.spec.ts | 2 -- addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.ts | 1 - .../blueprints/service/files/__path__/__name__.service.spec.ts | 1 - 5 files changed, 1 insertion(+), 7 deletions(-) diff --git a/addon/ng2/blueprints/component/files/__path__/__name__.component.spec.ts b/addon/ng2/blueprints/component/files/__path__/__name__.component.spec.ts index 4cc7b6d33391..cc3ad0204a9a 100644 --- a/addon/ng2/blueprints/component/files/__path__/__name__.component.spec.ts +++ b/addon/ng2/blueprints/component/files/__path__/__name__.component.spec.ts @@ -12,8 +12,7 @@ import { } from 'angular2/testing'; import {provide} from 'angular2/core';<% if (route) { %> import {Router, RouteParams} from 'angular2/router';<% } %> -import {<%= classifiedModuleName %>Component} from './<%= dasherizedModuleName %>.component'; -<% if (route) { %> +import {<%= classifiedModuleName %>Component} from './<%= dasherizedModuleName %>.component';<% if (route) { %> class MockRouter { registerPrimaryOutlet() { } } diff --git a/addon/ng2/blueprints/directive/files/__path__/__name__.directive.spec.ts b/addon/ng2/blueprints/directive/files/__path__/__name__.directive.spec.ts index f737809adee4..4eda3ec3309a 100644 --- a/addon/ng2/blueprints/directive/files/__path__/__name__.directive.spec.ts +++ b/addon/ng2/blueprints/directive/files/__path__/__name__.directive.spec.ts @@ -13,7 +13,6 @@ import { import {provide, Component} from 'angular2/core'; import {<%= classifiedModuleName %>} from './<%= dasherizedModuleName %>.directive'; - @Component({ selector: 'test-component', template: `
>
` 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 43a562105c0a..46057a42f010 100644 --- a/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.spec.ts +++ b/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.spec.ts @@ -12,12 +12,10 @@ import { import {provide} from 'angular2/core'; import {<%= classifiedModuleName %>} from './<%= dasherizedModuleName %>.pipe'; - describe('<%= classifiedModuleName %> Pipe', () => { beforeEachProviders(() => [<%= classifiedModuleName%>]); - it('should transform the input', inject([<%= classifiedModuleName %>], (pipe:<%= classifiedModuleName %>) => { 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 d4f37fb5204a..83f1389e262f 100644 --- a/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.ts +++ b/addon/ng2/blueprints/pipe/files/__path__/__name__.pipe.ts @@ -1,6 +1,5 @@ import {Pipe, PipeTransform} from 'angular2/core'; - @Pipe({ name: '<%= camelizedModuleName %>' }) diff --git a/addon/ng2/blueprints/service/files/__path__/__name__.service.spec.ts b/addon/ng2/blueprints/service/files/__path__/__name__.service.spec.ts index 3fc70de4fff7..04724e9dba06 100644 --- a/addon/ng2/blueprints/service/files/__path__/__name__.service.spec.ts +++ b/addon/ng2/blueprints/service/files/__path__/__name__.service.spec.ts @@ -11,7 +11,6 @@ import { import {provide} from 'angular2/core'; import {<%= classifiedModuleName %>} from './<%= dasherizedModuleName %>.service'; - describe('<%= classifiedModuleName %> Service', () => { beforeEachProviders(() => [<%= classifiedModuleName %>]);