1
0
Fork 0

Merge branch 'spdvpk' of github.com:arangodb/arangodb into spdvpk

This commit is contained in:
Michael Hackstein 2016-03-10 13:11:40 +01:00
commit 161c050c8e
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);
});
},