From c6d6b756910b793a58c27bd219a54cf34eea090a Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Fri, 4 Dec 2015 17:02:19 +0100 Subject: [PATCH] refactor(test/linker): fix typo in directive name --- .../angular2/test/core/linker/integration_spec.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/angular2/test/core/linker/integration_spec.ts b/modules/angular2/test/core/linker/integration_spec.ts index b35509cb81..70ee024f05 100644 --- a/modules/angular2/test/core/linker/integration_spec.ts +++ b/modules/angular2/test/core/linker/integration_spec.ts @@ -834,14 +834,14 @@ export function main() { inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async) => { tcb.overrideView(MyComp, new ViewMetadata({ template: '
', - directives: [DirectiveEmitingEvent, DirectiveListeningEvent] + directives: [DirectiveEmittingEvent, DirectiveListeningEvent] })) .createAsync(MyComp) .then((fixture) => { var tc = fixture.debugElement.componentViewChildren[0]; - var emitter = tc.inject(DirectiveEmitingEvent); + var emitter = tc.inject(DirectiveEmittingEvent); var listener = tc.inject(DirectiveListeningEvent); expect(listener.msg).toEqual(''); @@ -860,14 +860,14 @@ export function main() { tcb.overrideView( MyComp, new ViewMetadata({ template: '', - directives: [DirectiveEmitingEvent, DirectiveListeningEvent] + directives: [DirectiveEmittingEvent, DirectiveListeningEvent] })) .createAsync(MyComp) .then((fixture) => { var tc = fixture.debugElement.componentViewChildren[0]; - var emitter = tc.inject(DirectiveEmitingEvent); + var emitter = tc.inject(DirectiveEmittingEvent); var myComp = tc.inject(MyComp); var listener = tc.inject(DirectiveListeningEvent); @@ -1379,7 +1379,7 @@ export function main() { tcb = tcb.overrideView( MyComp, new ViewMetadata({ template: ``, - directives: [DirectiveEmitingEvent, DirectiveListeningEvent] + directives: [DirectiveEmittingEvent, DirectiveListeningEvent] })); var fixture: ComponentFixture; @@ -1387,7 +1387,7 @@ export function main() { tick(); var tc = fixture.debugElement.componentViewChildren[0]; - tc.inject(DirectiveEmitingEvent).fireEvent("boom"); + tc.inject(DirectiveEmittingEvent).fireEvent("boom"); try { tick(); @@ -2009,7 +2009,7 @@ class DoublePipe implements PipeTransform, OnDestroy { @Directive({selector: '[emitter]', outputs: ['event']}) @Injectable() -class DirectiveEmitingEvent { +class DirectiveEmittingEvent { msg: string; event: EventEmitter;