1
0
Fork 0

Fix some more edge tests.

This commit is contained in:
Max Neunhoeffer 2016-03-10 13:08:02 +01:00
parent 5e860c14da
commit df487862a8
1 changed files with 6 additions and 7 deletions

View File

@ -313,13 +313,12 @@ function CollectionEdgeSuite () {
[ "UnitTestsCollectionNonExistingVertex/12345", [ "UnitTestsCollectionNonExistingVertex/12345",
"UnitTestsCollectionNonExistingVertex/456745" "UnitTestsCollectionNonExistingVertex/456745"
].forEach(function(key) { ].forEach(function(key) {
try { var doc = edge.save(key, key, { });
edge.save(key, key, { }); assertTypeOf("string", doc._id);
fail(); assertTypeOf("string", doc._rev);
} doc = edge.document(doc);
catch (err) { assertMatch(/^UnitTestsCollectionNonExistingVertex\//, doc._from);
assertEqual(ERRORS.ERROR_ARANGO_COLLECTION_NOT_FOUND.code, err.errorNum); assertMatch(/^UnitTestsCollectionNonExistingVertex\//, doc._to);
}
}); });
}, },