mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 23:13:48 +08:00
17 lines
373 B
JavaScript
17 lines
373 B
JavaScript
import componentTest from "helpers/component-test";
|
|
|
|
export function moduleForWidget(name, options = {}) {
|
|
moduleForComponent(
|
|
name,
|
|
`widget:${name}`,
|
|
Object.assign(
|
|
{ integration: true },
|
|
{ beforeEach: options.beforeEach, afterEach: options.afterEach }
|
|
)
|
|
);
|
|
}
|
|
|
|
export function widgetTest(name, opts) {
|
|
return componentTest(name, opts);
|
|
}
|