Skip to content

Commit

Permalink
test: fix Windows path issue for local shrinkwrap test
Browse files Browse the repository at this point in the history
Credit: @zkat
  • Loading branch information
zkat committed Jun 30, 2016
1 parent 346bba1 commit ee5bfb3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/tap/shrinkwrap-local-dependency.js
Expand Up @@ -17,13 +17,13 @@ var shrinkwrap = {
dependencies: {
mod2: {
version: '1.0.0',
from: 'mods/mod2',
resolved: 'file:mods/mod2',
from: path.join('mods', 'mod2'),
resolved: 'file:' + path.join('mods', 'mod2'),
dependencies: {
mod1: {
version: '1.0.0',
from: 'mods/mod1',
resolved: 'file:mods/mod1'
from: path.join('mods', 'mod1'),
resolved: 'file:' + path.join('mods', 'mod1')
}
}
}
Expand All @@ -45,7 +45,7 @@ var fixture = new Tacks(
name: 'mod2',
version: '1.0.0',
dependencies: {
mod1: 'file:../mod1'
mod1: 'file:' + path.join('..', 'mod1')
}
})
})
Expand All @@ -54,7 +54,7 @@ var fixture = new Tacks(
name: 'shrinkwrap-local-dependency',
version: '1.0.0',
dependencies: {
mod2: 'file:mods/mod2'
mod2: 'file:' + path.join('mods', 'mod2')
}
})
})
Expand Down Expand Up @@ -121,4 +121,3 @@ test('cleanup', function (t) {
cleanup()
t.end()
})

0 comments on commit ee5bfb3

Please sign in to comment.