1
0
Fork 0

Allow generic graph tests to work without enterprise checkout (#9202)

This commit is contained in:
Tobias Gödderz 2019-06-06 15:15:53 +02:00 committed by Michael Hackstein
parent 074397d367
commit 429b3dcf3d
1 changed files with 8 additions and 1 deletions

View File

@ -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;