mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
test-helper: re-add missing function spit() (#3248)
It looks like this was removed in d615ebee177ed57c7a7df861b1db675c9e0ebb0f while it still had references to it. Reviewed-by: Charmander <~@charmander.me>
This commit is contained in:
parent
5a6734429c
commit
88311c17a5
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user