Skip to content

Commit

Permalink
additional logging in a failing (on Windows) test case
Browse files Browse the repository at this point in the history
  • Loading branch information
xpl committed Dec 29, 2017
1 parent b3dec35 commit dcb6f6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test.js
Expand Up @@ -150,7 +150,7 @@ describe ('StackTracey', () => {
const stack = new StackTracey ([
{ fileShort: 'dasdasdasdadadadasdasdasdadasdassdasdaddadasdas.js', line: 11, calleeShort: 'dadasdasdasdasdasdasdasdasdasdasdasdasd' },
])

stack.pretty.split ('\n')[0].should.equal ('at dadasdasdasdasdasdasdasdasdas… …adasdasdasdadasdassdasdaddadasdas.js:11 ')
})

Expand Down Expand Up @@ -203,8 +203,12 @@ describe ('StackTracey', () => {

const stack = new StackTracey (e).clean

console.log ('')
console.log (stack.pretty, '\n')

stack[0].syntaxError.should.equal (true)
stack[0].column.should.equal (5)

stack.pretty.split ('\n')[0].should.equal ('at (syntax error) test_files/syntax_error.js:2 foo->bar () ')
}
})
Expand Down

0 comments on commit dcb6f6f

Please sign in to comment.