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/456745"
].forEach(function(key) {
try {
edge.save(key, key, { });
fail();
}
catch (err) {
assertEqual(ERRORS.ERROR_ARANGO_COLLECTION_NOT_FOUND.code, err.errorNum);
}
var doc = edge.save(key, key, { });
assertTypeOf("string", doc._id);
assertTypeOf("string", doc._rev);
doc = edge.document(doc);
assertMatch(/^UnitTestsCollectionNonExistingVertex\//, doc._from);
assertMatch(/^UnitTestsCollectionNonExistingVertex\//, doc._to);
});
},