17 lines
381 B
Plaintext
Raw Normal View History

2016-09-13 15:14:17 -04:00
import initializer from 'wizard/initializers/load-helpers';
export function componentTest(name, opts) {
opts = opts || {};
test(name, function(assert) {
initializer.initialize(this.container, this.registry);
2016-09-13 15:14:17 -04:00
if (opts.setup) {
opts.setup.call(this);
}
andThen(() => this.render(opts.template));
andThen(() => opts.test.call(this, assert));
});
}