File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ module.exports = function () {
4747 givenResults . push ( getTestObject ( res . records [ i ] ) ) ;
4848 }
4949 if ( givenResults . length != self . expectedResults . length ) {
50- callback ( new Error ( "Given and expected length of result array does not match. Give: " + givenResults . length + " Expected " + self . expectedResults . length ) ) ;
50+ callback ( new Error ( "Given and expected length of result array does not match.\n" +
51+ "Given length: " + givenResults . length + " Expected length" + self . expectedResults . length + "\n" +
52+ "Given: " + printable ( givenResults ) + " Expected: " + expectedPrint ) ) ;
5153 }
5254 if ( ! compareResults ( givenResults , self . expectedResults ) ) {
5355 callback ( new Error ( "Given and expected results does not match: " + printable ( givenResults ) + " Expected " + expectedPrint ) ) ;
You can’t perform that action at this time.
0 commit comments