| @@ -549,12 +549,13 @@ t.test('single arg', t => { |
|
|
| 549 |
549 |
t.test('dir spec type', t => { |
| 550 |
550 |
t.plan(2) |
| 551 |
551 |
|
|
552 |
+const otherPath = resolve('/path/to/other-dir') |
| 552 |
553 |
libnpmdiff = async ([a, b], opts) => { |
| 553 |
|
-t.equal(a, 'file:/path/to/other-dir', 'should target dir') |
|
554 |
+t.equal(a, `file:${otherPath}`, 'should target dir') |
| 554 |
555 |
t.equal(b, `file:${fooPath}`, 'should compare to cwd') |
| 555 |
556 |
} |
| 556 |
557 |
|
| 557 |
|
-config.diff = ['/path/to/other-dir'] |
|
558 |
+config.diff = [otherPath] |
| 558 |
559 |
diff.exec([], err => { |
| 559 |
560 |
if (err) |
| 560 |
561 |
throw err |