We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cca9b4 commit ad097c7Copy full SHA for ad097c7
1 file changed
test/tests/graph.js
@@ -9,9 +9,6 @@ describe("Graph", function() {
9
10
var reposPath = local("../repos/workdir");
11
12
- var expectedError = "Object not found - no match for id " +
13
- "(81b06facd90fe7a6e9bbd9cee59736a79105b7be)";
14
-
15
beforeEach(function() {
16
var test = this;
17
@@ -54,14 +51,14 @@ describe("Graph", function() {
54
51
});
55
52
56
53
57
- it("will error if provided bad commits", function() {
+ it("descendantOf will error if provided bad commits", function() {
58
return Graph.descendantOf(
59
this.repository,
60
"81b06facd90fe7a6e9bbd9cee59736a79105b7be",
61
"26744fc697849d370246749b67ac43b792a4af0c"
62
)
63
.catch(function(result) {
64
- assert.equal(result.message, expectedError);
+ assert(~result.message.indexOf("81b06fac"));
65
66
67
0 commit comments