Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Cannot distinguish between generated and manually specified assertion messages #5836

@glenjamin

Description

@glenjamin

Since 6101eb1 landed.

AssertionError can take message, expected and actual options, if message is not passed, it gets generated from expected and actual.

Within test runner output, this leads to some duplication in the output:

     this.assert.strictEqual('1', 1);
       "1" === 1
       expected: 1
            got: '1'

Ideally I'd like to only display the expected and actual, unless a custom message has been passed - but as it stands I can't see any way to tell the difference.

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