Skip to content

Commit

Permalink
update is-absolute-path tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Sep 23, 2024
1 parent c91ab0e commit c9d61ab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/unit/is-absolute-path.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

'use strict'

const tap = require('tap')
const test = require('node:test')
const assert = require('node:assert')

const isAbsolutePath = require('../../lib/util/is-absolute-path')

tap.test('verifies paths correctly', async (t) => {
test('verifies paths correctly', async () => {
const tests = [
['./foo/bar.js', true],
['/foo/bar.cjs', true],
Expand All @@ -19,6 +21,6 @@ tap.test('verifies paths correctly', async (t) => {
]

for (const [input, expected] of tests) {
t.equal(isAbsolutePath(input), expected)
assert.equal(isAbsolutePath(input), expected)
}
})

0 comments on commit c9d61ab

Please sign in to comment.