DEV: adds afterRender decorator (#8864)

This commit is contained in:
Joffrey JAFFEUX
2020-02-10 08:13:13 +01:00
committed by GitHub
parent 478c095e5c
commit f5f4ce90c1
3 changed files with 65 additions and 0 deletions

View File

@ -3,10 +3,12 @@ import selectKit from "helpers/select-kit-helper";
export function testSelectKitModule(moduleName, options = {}) {
moduleForComponent(`select-kit/${moduleName}`, {
integration: true,
beforeEach() {
this.set("subject", selectKit());
options.beforeEach && options.beforeEach.call(this);
},
afterEach() {
options.afterEach && options.afterEach.call(this);
}