diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-02-07 03:56:30 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-02-07 03:56:30 +0300 |
commit | 7eecbd631b80fc080b31dbd7603c65fb9e2c1917 (patch) | |
tree | 3ec2d67907799b3f8a9a7ee49b3cdef41f2c07fc /test | |
parent | b36ffbb920bfee929bc327eb2571fa66f14999e9 (diff) |
tests: care about git results, not absolute formatting
Diffstat (limited to 'test')
-rw-r--r-- | test/tap/version-git-not-clean.js | 3 |
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() }) |