Skip to content

Commit

Permalink
tests: care about git results, not absolute formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
othiym23 committed Feb 7, 2015
1 parent b36ffbb commit 7eecbd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/tap/version-git-not-clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
Expand Down

0 comments on commit 7eecbd6

Please sign in to comment.