Skip to content

settings.truncateMessages = false causes issues with deep object comparisons #30

@marshall007

Description

@marshall007

It looks like the line on lib/index.js#L344 assumes that the message portion of error.stack will only be one line (i.e. the .slice(1)). However, when Code.settings.truncateMessages = false the object is pretty-printed and the stacktrace looks like this:

Error: Expected { foo: 'bar'
  hello: 'world' } to equal specified value
  at ...

Metadata

Metadata

Assignees

Labels

bugBug or defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions