-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
I have some injections on my controller (inside of an engine) which worked, but after running the codemod I'm getting errors:
Attempting to inject an unknown injection: 'router:main
I imagine it's because the registry in the new API is isolated?
Should we be manually registering services, or is there a different desired change?
const resolver = engineResolverFor('my-engine');
module('Unit | Controller | my controller', function(hooks) {
setupTest(hooks, {
resolver
});
test('injection of services', function(assert) {
// error occurs here
let controller = this.owner.factoryFor('controller:my-controller').create({});
});
});