import {
beforeAll,
beforeEach,
describe,
it,
expect,
DOM
} from "@olton/easytest";
beforeAll(() => {
DOM.flash()
DOM.js.fromFile('./lib/metro.js')
})
beforeEach(() => {
DOM.html.fromString(`
<div id="accordion">
<div class="frame">
<div class="heading">Heading</div>
<div class="content">Content</div>
</div>
</div>
`)
})
describe(`Accordion tests`, () => {
it(`Create accordion`, async () => {
const accordion = window.Metro.makePlugin("#accordion", 'accordion')[0]
expect(accordion).hasClass('accordion')
})
})