You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

13 lines
263 B

import test from '../../';
test('async function', async function (t) {
t.plan(1);
const value = await Promise.resolve(1);
t.is(value, 1);
});
test('arrow async function', async t => {
t.plan(1);
const value = await Promise.resolve(1);
t.is(value, 1);
});