diff options
author | isaacs <i@izs.me> | 2013-01-10 02:44:46 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-01-10 02:44:46 +0400 |
commit | 517c080a296c19f930dc99c8c260567036acae76 (patch) | |
tree | b9c7f7690a31e33948cf4280c285504959d1f0a5 /test | |
parent | ad8e21fc9da6e9a0c46f2c69f999e280e2e3d188 (diff) |
test: Fix peer-deps-invalid test
Diffstat (limited to 'test')
-rw-r--r-- | test/packages/npm-test-peer-deps-invalid/npm-ls.json | 1 | ||||
-rw-r--r-- | test/packages/npm-test-peer-deps-invalid/test.js | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/test/packages/npm-test-peer-deps-invalid/npm-ls.json b/test/packages/npm-test-peer-deps-invalid/npm-ls.json index 1f3b50795..6b113ad54 100644 --- a/test/packages/npm-test-peer-deps-invalid/npm-ls.json +++ b/test/packages/npm-test-peer-deps-invalid/npm-ls.json @@ -16,7 +16,6 @@ "from": "https://gist.github.com/raw/4303335/861f8d3213061826ab31591840c3cb0ac737f4fc/index.js" }, "dict": { - "version": "1.0.0", "peerInvalid": true } } diff --git a/test/packages/npm-test-peer-deps-invalid/test.js b/test/packages/npm-test-peer-deps-invalid/test.js index f2cd82ba0..e4521141c 100644 --- a/test/packages/npm-test-peer-deps-invalid/test.js +++ b/test/packages/npm-test-peer-deps-invalid/test.js @@ -19,6 +19,11 @@ require("child_process").exec(npm + " ls --json", { // ./npm-ls.json. delete actual.dict.problems + // It's undefined which peerDependency will get installed first, so + // this will be either version 1.1.0 or version 1.0.0 + var dictVer = actual.dict.version + delete actual.dict.version + assert(dictVer === "1.1.0" || dictVer === "1.0.0") assert.deepEqual(actual, expected) assert.ok(err) |