mirror of https://gitee.com/bigwinds/arangodb
Allow generic graph tests to work without enterprise checkout (#9202)
This commit is contained in:
parent
074397d367
commit
429b3dcf3d
|
@ -24,9 +24,16 @@
|
|||
/// @author Tobias Gödderz
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
const tryRequire = (module) => {
|
||||
try {
|
||||
return require(module);
|
||||
} catch(e) {}
|
||||
};
|
||||
|
||||
const internal = require("internal");
|
||||
const db = internal.db;
|
||||
const sgm = require("@arangodb/smart-graph");
|
||||
const sgm = tryRequire("@arangodb/smart-graph");
|
||||
const cgm = require("@arangodb/general-graph");
|
||||
const _ = require("lodash");
|
||||
const assert = require("jsunity").jsUnity.assertions;
|
||||
|
|
Loading…
Reference in New Issue