Commit 77cd444
Changed files (2)
app
boot
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)
});
});
})
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) => {