Skip to content

Commit

Permalink
rewrite test harness to use tap for uri-js.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jun 14, 2024
1 parent 976203d commit ba0fb70
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions test/uri-js.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,25 @@

const {
ok,
deepEqual,
strictEqual,
notStrictEqual
} = require('node:assert')
const {
test
} = require('node:test')
same: deepEqual,
strictSame: strictEqual,
notSame: notStrictEqual,
test: tapTest
} = require('tap')

const test = function () {
if (typeof arguments[2] === 'function') {
tapTest(arguments[0], arguments[1], t => {
arguments[2](t)
t.end()
})
} else {
tapTest(arguments[0], t => {
arguments[1](t)
t.end()
})
}
}

const URI = require('../index')

Expand Down

0 comments on commit ba0fb70

Please sign in to comment.