summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/npm-install-checks/test/check-engine.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/npm-install-checks/test/check-engine.js')
-rw-r--r--deps/npm/node_modules/npm-install-checks/test/check-engine.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/deps/npm/node_modules/npm-install-checks/test/check-engine.js b/deps/npm/node_modules/npm-install-checks/test/check-engine.js
index a16b13d7db..c89ec5398d 100644
--- a/deps/npm/node_modules/npm-install-checks/test/check-engine.js
+++ b/deps/npm/node_modules/npm-install-checks/test/check-engine.js
@@ -18,16 +18,16 @@ test("node version too old", function (t) {
})
test("npm version too old", function (t) {
- var target = { engines: { npm: "1.3.6" }}
- c(target, "1.4.2", "0.2.1", false, true, function (err) {
+ var target = { engines: { npm: "^1.4.6" }}
+ c(target, "1.3.2", "0.2.1", false, true, function (err) {
t.ok(err, "returns an error")
- t.equals(err.required.npm, "1.3.6")
+ t.equals(err.required.npm, "^1.4.6")
t.end()
})
})
-test("strict=false does not return an error", function (t) {
- var target = { engines: { npm: "1.3.6" }}
+test("strict=false w/engineStrict json does not return an error", function (t) {
+ var target = { engines: { npm: "1.3.6" }, engineStrict: true }
c(target, "1.4.2", "0.2.1", false, false, function (err) {
t.notOk(err, "returns no error")
t.end()