import * as path from 'path'; export default { html: ` import

1 + 2 + 3 + 4 = 10

local

1 + 2 + 3 + 4 = 10

`, before_test() { delete require.cache[path.resolve(__dirname, 'data.js')]; }, async test({ assert, target, window }) { const btn = target.querySelector('button'); const clickEvent = new window.MouseEvent('click'); await btn.dispatchEvent(clickEvent); assert.htmlEqual(target.innerHTML, ` import

1 + 2 + 3 + 4 + 5 = 15

local

1 + 2 + 3 + 4 + 5 = 15

`); await btn.dispatchEvent(clickEvent); assert.htmlEqual(target.innerHTML, ` import

1 + 2 + 3 + 4 + 5 + 6 = 21

local

1 + 2 + 3 + 4 + 5 + 6 = 21

`); } };