From 1ec737ba7806ec82a6b238f12a4f9bf26f298485 Mon Sep 17 00:00:00 2001 From: Mike Ryan Date: Mon, 26 Sep 2016 19:11:37 -0500 Subject: [PATCH] chore(build): Reorganize project structure --- index.ts | 1 + testing/runner.ts | 2 +- testing/testing.module.ts | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/index.ts b/index.ts index 7876e35..00d4a7e 100644 --- a/index.ts +++ b/index.ts @@ -2,3 +2,4 @@ export { Effect, mergeEffects } from './src/effects'; export { Actions } from './src/actions'; export { EffectsModule } from './src/effects.module'; export { EffectsSubscription } from './src/effects-subscription'; +export { toPayload } from './src/util'; diff --git a/testing/runner.ts b/testing/runner.ts index 0d23b76..e644623 100644 --- a/testing/runner.ts +++ b/testing/runner.ts @@ -3,7 +3,7 @@ import { ReplaySubject } from 'rxjs/ReplaySubject'; @Injectable() -export class EffectsTestRunner extends ReplaySubject { +export class EffectsRunner extends ReplaySubject { constructor() { super(); } diff --git a/testing/testing.module.ts b/testing/testing.module.ts index f4b95c3..4671d53 100644 --- a/testing/testing.module.ts +++ b/testing/testing.module.ts @@ -1,16 +1,16 @@ import { NgModule } from '@angular/core'; import { Actions } from '@ngrx/effects'; -import { EffectsTestRunner } from './runner'; +import { EffectsRunner } from './runner'; -export function _createActions(runner: EffectsTestRunner): Actions { +export function _createActions(runner: EffectsRunner): Actions { return new Actions(runner); } @NgModule({ providers: [ - EffectsTestRunner, - { provide: Actions, deps: [ EffectsTestRunner ], useFactory: _createActions } + EffectsRunner, + { provide: Actions, deps: [ EffectsRunner ], useFactory: _createActions } ] }) export class EffectsTestingModule { }