Skip to content

Commit 67bbb47

Browse files
committed
fix(test): fix path check whcih fails in github actions
1 parent 5f8585b commit 67bbb47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,12 @@ suite(pkg.name, () => {
277277
assert(obj2 !== obj3)
278278
assert(obj3 !== obj4)
279279
assert(obj4 === obj5)
280+
// Normalize path
281+
const root = path.join(__dirname, '..')
282+
obj5.$0 = path.relative(root, obj5.$0)
280283
assert.deepStrictEqual(obj5, {
281284
// yargs adds these top two
282-
$0: process.argv[1],
285+
$0: path.relative(root, process.argv[1]),
283286
_: [],
284287
foo: 'foo',
285288
bar: 'bar',

0 commit comments

Comments
 (0)