Skip to content
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

Include assertion message as context #993

Closed
wants to merge 1 commit into from
Closed

Include assertion message as context #993

wants to merge 1 commit into from

Conversation

blalor
Copy link
Contributor

@blalor blalor commented Oct 6, 2013

Resolves #991

This expect statement

expect("foo", "the foo").to.equal("bar");

now includes "the foo" as context for the failed match.

1) reporter shows reason for failed assertion:

    the foo
   + expected - actual

    +"bar"
   -"foo"

Resolves #991

This expect statement

    expect("foo", "the foo").to.equal("bar");

now includes "the foo" as context for the failed match.

    1) reporter shows reason for failed assertion:

        the foo
        + expected - actual

        +"bar"
        -"foo"
travisjeffery pushed a commit that referenced this pull request Oct 12, 2013
Resolves #991

This expect statement

    expect("foo", "the foo").to.equal("bar");

now includes "the foo" as context for the failed match.

    1) reporter shows reason for failed assertion:

        the foo
        + expected - actual

        +"bar"
        -"foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some reporters don't show reason for failed assertion
1 participant