Skip to content

Commit

Permalink
test-helper: re-add missing function spit() (#3248)
Browse files Browse the repository at this point in the history
It looks like this was removed in d615ebe while it still had references to it.

Reviewed-by: Charmander <[email protected]>
  • Loading branch information
alxndrsn authored Feb 20, 2025
1 parent 5a67344 commit 88311c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/pg/test/test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ assert.UTCDate = function (actual, year, month, day, hours, min, sec, milisecond
assert.equal(actualMili, milisecond, 'expected milisecond ' + milisecond + ' but got ' + actualMili)
}

const spit = function (actual, expected) {
console.log('')
console.log('actual ' + sys.inspect(actual))
console.log('expect ' + sys.inspect(expected))
console.log('')
}

assert.equalBuffers = function (actual, expected) {
if (actual.length != expected.length) {
spit(actual, expected)
Expand Down

0 comments on commit 88311c1

Please sign in to comment.