Skip to content

Commit ad097c7

Browse files
author
John Haley
committed
Make graph error test more resilient.
1 parent 8cca9b4 commit ad097c7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/tests/graph.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ describe("Graph", function() {
99

1010
var reposPath = local("../repos/workdir");
1111

12-
var expectedError = "Object not found - no match for id " +
13-
"(81b06facd90fe7a6e9bbd9cee59736a79105b7be)";
14-
1512
beforeEach(function() {
1613
var test = this;
1714

@@ -54,14 +51,14 @@ describe("Graph", function() {
5451
});
5552
});
5653

57-
it("will error if provided bad commits", function() {
54+
it("descendantOf will error if provided bad commits", function() {
5855
return Graph.descendantOf(
5956
this.repository,
6057
"81b06facd90fe7a6e9bbd9cee59736a79105b7be",
6158
"26744fc697849d370246749b67ac43b792a4af0c"
6259
)
6360
.catch(function(result) {
64-
assert.equal(result.message, expectedError);
61+
assert(~result.message.indexOf("81b06fac"));
6562
});
6663
});
6764
});

0 commit comments

Comments
 (0)