2018-06-15 11:03:24 -04:00
|
|
|
import componentTest from "helpers/component-test";
|
2016-01-04 15:18:09 -05:00
|
|
|
|
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);
|
2018-06-15 11:03:24 -04:00
|
|
|
}
|