Created
July 19, 2019 11:58
-
-
Save mafintosh/bf9861754284daf51f575f0c2865cb00 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Button = require('./button') | |
vhs.delay(1000)('button works', async (t) => { | |
const btn = new Button('click me!', { | |
onclick () { | |
t.pass('i should get nere') | |
t.end() | |
} | |
}) | |
t.element.appendChild(btn.element) | |
await t.loaded(btn.element) | |
await t.click(btn.element , 'click button to trigger onclick') | |
// await t.debugFill(btn.element) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment