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:
Alex Anderson 2025-02-20 04:34:23 +03:00 committed by GitHub
parent 5a6734429c
commit 88311c17a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)