mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Add debugging information to error message test (#5239)
One of the test cases in test/error_messages.coffee fails intermittently in the Node.js ecosystem-testing tool CITGM. In an effort to help debug what's going on when this occurs, this adds more information to the AssertionError message in question.
This commit is contained in:
parent
70c2c4706f
commit
ddb5dac49d
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ if require?
|
|||
|
||||
eq error.message, 'hello world'
|
||||
doesNotThrow(-> error.stack)
|
||||
notEqual error.stack.toString().indexOf(filePath), -1
|
||||
notEqual error.stack.toString().indexOf(filePath), -1, "Expected " + filePath + "in stack trace: " + error.stack.toString()
|
||||
|
||||
test "#4418: stack traces for compiled files reference the correct line number", ->
|
||||
# The browser is already compiling other anonymous scripts (the tests)
|
||||
|
|
Loading…
Reference in a new issue