-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I have a component that uses the helper with a custom config. It works perfectly in the app but now I am trying to write an integration test for it.
My first stab got me this: Failed to create an instance of 'sanitizer:links-only'. Most likely an improperly defined class or an invalid module export.
So I figured I need to run the initializer. My test now looks something like this:
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import initializer from 'my-app/initializers/setup-sanitizers';
moduleForComponent('my-component', 'Integration | Component | my component', {
integration: true,
setup() {
// manually invoke the ember-sanitize initializer
initializer.initialize(this);
//initializer.initialize(this.container);
}
});
test('it renders', function(assert) {
...
});
But now I get container.registerOptionsForType is not a function coming out of the initializer. I think I'm on the right track but I'm not sure what to pass to the initializer. Any suggestions? Thanks.
Metadata
Metadata
Assignees
Labels
No labels