Skip to content

Commit adf3ae2

Browse files
committed
update is-absolute-path tests
1 parent 7ebbcf8 commit adf3ae2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/unit/is-absolute-path.test.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55

66
'use strict'
77

8-
const tap = require('tap')
8+
const test = require('node:test')
9+
const assert = require('node:assert')
10+
911
const isAbsolutePath = require('../../lib/util/is-absolute-path')
1012

11-
tap.test('verifies paths correctly', async (t) => {
13+
test('verifies paths correctly', async () => {
1214
const tests = [
1315
['./foo/bar.js', true],
1416
['/foo/bar.cjs', true],
@@ -19,6 +21,6 @@ tap.test('verifies paths correctly', async (t) => {
1921
]
2022

2123
for (const [input, expected] of tests) {
22-
t.equal(isAbsolutePath(input), expected)
24+
assert.equal(isAbsolutePath(input), expected)
2325
}
2426
})

0 commit comments

Comments
 (0)