Skip to content

Planned assertion documentation issue (or planned assertion bug) #140

@ArtemGovorov

Description

@ArtemGovorov

Readme says:

And this will result in an error because the code called more assertions than planned:

test(t => {
    t.plan(1);

    t.pass();

    setTimeout(() => {
        t.pass();
    }, 100);
});

however running the test gives:

✔ [anonymous]

  1 test passed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions