File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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} ) ;
You can’t perform that action at this time.
0 commit comments