Skip to content

Commit

Permalink
more useful yaml messaging in test/test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 28, 2017
1 parent a75fe1a commit 318838f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test.js
Expand Up @@ -134,7 +134,12 @@ function runTest (t, bail, buffer, file) {
y = ''
wdata = JSON.parse(wline)
patternify(wdata)
t.match(data, wdata)
var msg = 'line ' + f + ' '
if (wline.length < 50)
msg += wline
else
msg += wline.substr(0, 45) + '...'
t.match(data, wdata, msg)
f--
} else {
y += fline + '\n'
Expand Down

0 comments on commit 318838f

Please sign in to comment.