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

do not truncate values in assertions #14

Closed
csrl opened this issue Jan 28, 2015 · 1 comment · Fixed by #26
Assignees
Labels
Milestone

Comments

@csrl
Copy link

@csrl csrl commented Jan 28, 2015

I have a simple lab test that asserts:

expect(err).to.not.exist();

And when it asserts I get output that looks something like:

Expected { Object (code, status, ...) } to not exist

Which doesn't provide the context I need to understand the failure. So I have to go back into the test case, add a debug line like

console.log(err);

and then rerun the tests to actually see what is going wrong. It'd be nice if the value was not being truncated/formatted like that.

@csrl csrl added the request label Jan 28, 2015
@cjihrig

This comment has been minimized.

Copy link
Contributor

@cjihrig cjihrig commented Jan 30, 2015

I'll take a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.