Skip to content

power-assert output fails when using async/await #113

Closed
@jamestalmage

Description

@jamestalmage

test.js

import test from 'ava';

function foo() {
    return Promise.resolve(true);
}

test('foo', async t => {
    t.plan(1);
    t.ok(await foo() === false);
});

output

  Error: Line 1: Unexpected identifier
    at Test.<anonymous> (/.../test.js:9:4)
    at step (/.../test.js:5:273)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions