2016-01-04 15:18:09 -05:00
|
|
|
import componentTest from "helpers/component-test";
|
|
|
|
|
2020-03-30 12:12:32 -04:00
|
|
|
export function moduleForWidget(name, options = {}) {
|
|
|
|
moduleForComponent(
|
|
|
|
name,
|
|
|
|
`widget:${name}`,
|
|
|
|
Object.assign(
|
|
|
|
{ integration: true },
|
|
|
|
{ beforeEach: options.beforeEach, afterEach: options.afterEach }
|
|
|
|
)
|
|
|
|
);
|
2016-01-04 15:18:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export function widgetTest(name, opts) {
|
|
|
|
return componentTest(name, opts);
|
2017-06-14 13:57:58 -04:00
|
|
|
}
|