mirror of https://gitee.com/bigwinds/arangodb
Fix some more edge tests.
This commit is contained in:
parent
5e860c14da
commit
df487862a8
|
@ -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);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue