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
path: root/test
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2015-02-07 03:56:30 +0300
committerForrest L Norvell <forrest@npmjs.com>2015-02-07 03:56:30 +0300
commit7eecbd631b80fc080b31dbd7603c65fb9e2c1917 (patch)
tree3ec2d67907799b3f8a9a7ee49b3cdef41f2c07fc /test
parentb36ffbb920bfee929bc327eb2571fa66f14999e9 (diff)
tests: care about git results, not absolute formatting
Diffstat (limited to 'test')
-rw-r--r--test/tap/version-git-not-clean.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tap/version-git-not-clean.js b/test/tap/version-git-not-clean.js
index efca36240..1deae49f9 100644
--- a/test/tap/version-git-not-clean.js
+++ b/test/tap/version-git-not-clean.js
@@ -55,7 +55,8 @@ test("npm version <semver> with working directory not clean", function (t) {
t.fail("should fail on non-clean working directory")
}
else {
- t.equal(err.message, "Git working directory not clean.\nM package.json")
+ t.ok(err.message.match(/Git working directory not clean./))
+ t.ok(err.message.match(/M package.json/))
}
t.end()
})