Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/tap/dedupe.js')
-rw-r--r--test/tap/dedupe.js29
1 files changed, 17 insertions, 12 deletions
diff --git a/test/tap/dedupe.js b/test/tap/dedupe.js
index c6106f814..4c3424818 100644
--- a/test/tap/dedupe.js
+++ b/test/tap/dedupe.js
@@ -25,32 +25,31 @@ var json = {
}
var shrinkwrap = {
- name: "dedupe",
- version: "0.0.0",
+ name: 'dedupe',
+ version: '0.0.0',
dependencies: {
clean: {
- version: "2.1.6",
+ version: '2.1.6',
dependencies: {
checker: {
- version: "0.5.2",
+ version: '0.5.2',
dependencies: {
- async: { version: "0.2.10" }
+ async: { version: '0.2.10' }
}
},
- minimist: { version: "0.0.5" }
+ minimist: { version: '0.0.5' }
}
},
optimist: {
- version: "0.6.0",
+ version: '0.6.0',
dependencies: {
- wordwrap: { version: "0.0.2" },
- minimist: { version: "0.0.5" }
+ wordwrap: { version: '0.0.2' },
+ minimist: { version: '0.0.5' }
}
}
}
}
-
test('setup', function (t) {
t.comment('test for https://github.com/npm/npm/issues/4675')
setup(function () {
@@ -78,8 +77,14 @@ test('dedupe finds the common module and moves it up one level', function (t) {
t.notOk(code, 'npm dedupe exited with code')
t.ok(existsSync(path.join(pkg, 'node_modules', 'minimist')), 'minimist module exists')
- t.notOk(existsSync(path.join(pkg, 'node_modules', 'clean','node_modules','minimist')), 'no clean/minimist')
- t.notOk(existsSync(path.join(pkg, 'node_modules', 'optimist','node_modules','minimist')), 'no optmist/minimist')
+ t.notOk(
+ existsSync(path.join(pkg, 'node_modules', 'clean', 'node_modules', 'minimist')),
+ 'no clean/minimist'
+ )
+ t.notOk(
+ existsSync(path.join(pkg, 'node_modules', 'optimist', 'node_modules', 'minimist')),
+ 'no optmist/minimist'
+ )
t.end()
}
)