summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2016-12-23 14:18:16 -0700
committermo khan <mo@mokhan.ca>2016-12-23 14:18:16 -0700
commit77cd44455ecb332e29132a9285e2ffcaf6d96ba7 (patch)
tree7b4f769efd56a071a626fa7e8aa7750014ef4085 /app
parent0c3c730203224a76922a3d96e651bbfbd7accbb5 (diff)
fix broken spec.
Diffstat (limited to 'app')
-rw-r--r--app/boot/__tests__/wire-up-components-into_spec.js6
-rw-r--r--app/boot/wire-up-components-into.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/app/boot/__tests__/wire-up-components-into_spec.js b/app/boot/__tests__/wire-up-components-into_spec.js
index 9a9e1a4..b30bfbc 100644
--- a/app/boot/__tests__/wire-up-components-into_spec.js
+++ b/app/boot/__tests__/wire-up-components-into_spec.js
@@ -1,5 +1,6 @@
import WireUpComponentsInto from '../wire-up-components-into';
import Registry from '../../infrastructure/registry';
+import * as commands from '../../services/commands';
describe("WireUpComponentsInto", () => {
let subject = null;
@@ -14,9 +15,8 @@ describe("WireUpComponentsInto", () => {
it ("registers each command", function() {
subject.run()
- results = registry.resolveAll('command')
- expect(results.length).toEqual(1)
- expect(results[0]).toBeInstanceOf(LoginCommand);
+ results = registry.resolveAll('subscriber')
+ expect(results.length).toEqual(3)
});
});
})
diff --git a/app/boot/wire-up-components-into.js b/app/boot/wire-up-components-into.js
index 8b49108..785b001 100644
--- a/app/boot/wire-up-components-into.js
+++ b/app/boot/wire-up-components-into.js
@@ -28,7 +28,7 @@ export default class WireUpComponentsInto {
registerSubscribers(subscribers) {
for (let subscriber in subscribers) {
- console.log(`registering: ${subscriber}`);
+ //console.log(`registering: ${subscriber}`);
this.registry.register('subscriber', subscribers[subscriber]).asSingleton();
}
this.registry.resolveAll("subscriber").forEach((subscriber) => {