Skip to content

Commit 318838f

Browse files
committed
more useful yaml messaging in test/test.js
1 parent a75fe1a commit 318838f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,12 @@ function runTest (t, bail, buffer, file) {
134134
y = ''
135135
wdata = JSON.parse(wline)
136136
patternify(wdata)
137-
t.match(data, wdata)
137+
var msg = 'line ' + f + ' '
138+
if (wline.length < 50)
139+
msg += wline
140+
else
141+
msg += wline.substr(0, 45) + '...'
142+
t.match(data, wdata, msg)
138143
f--
139144
} else {
140145
y += fline + '\n'

0 commit comments

Comments
 (0)