').appendTo(win.document.body)
})
});
beforeEach(function () {
// window object is needed to access the javascript objects
cy.window().then(win => {
// Create a test element.
this.el = win.jQuery('
');
// Create a test sandbox.
this.sandbox = win.ckan.sandbox();
// Create a test module.
this.module = new this.MyModule(this.el, {}, this.sandbox);
});
});
afterEach(function () {
// Clean up.
this.module.teardown();
});
});