-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
power-assert output fails when using async/await #113
Comments
I have cross-posted here: power-assert-js/babel-plugin-espower#6 I can't tell which library is causing the error. Please close if you are confident it is the power-assert plugin. |
@jamestalmage Thank you for reporting. |
For now, please avoid using await expression INSIDE assertions. Doesn't work: test('foo', async t => {
t.plan(1);
t.ok(await foo() === false);
}); Would work: test('foo', async t => {
t.plan(1);
const result = await foo();
t.ok(result === false);
}); Sorry for inconvenience, I'll fix it ASAP. |
Closing since the issue is in power-assert |
test.js
output
The text was updated successfully, but these errors were encountered: