We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de820a0 commit 5127dd3Copy full SHA for 5127dd3
test/lib/diff.js
@@ -549,12 +549,13 @@ t.test('single arg', t => {
549
t.test('dir spec type', t => {
550
t.plan(2)
551
552
+ const otherPath = resolve('/path/to/other-dir')
553
libnpmdiff = async ([a, b], opts) => {
- t.equal(a, 'file:/path/to/other-dir', 'should target dir')
554
+ t.equal(a, `file:${otherPath}`, 'should target dir')
555
t.equal(b, `file:${fooPath}`, 'should compare to cwd')
556
}
557
- config.diff = ['/path/to/other-dir']
558
+ config.diff = [otherPath]
559
diff.exec([], err => {
560
if (err)
561
throw err
0 commit comments