1 | var testFixture = require('webgme/test/_globals'),
|
2 | WEBGME_CONFIG_PATH = '../config';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | var WebGME = testFixture.WebGME,
|
8 | gmeConfig = require(WEBGME_CONFIG_PATH),
|
9 | _logger,
|
10 | getGmeConfig = function getGmeConfig() {
|
11 |
|
12 | if (!gmeConfig) {
|
13 |
|
14 | gmeConfig = require(WEBGME_CONFIG_PATH);
|
15 | WebGME.addToRequireJsPaths(gmeConfig);
|
16 | }
|
17 |
|
18 | return JSON.parse(JSON.stringify(gmeConfig));
|
19 | };
|
20 |
|
21 | WebGME.addToRequireJsPaths(gmeConfig);
|
22 | testFixture.getGmeConfig = getGmeConfig;
|
23 |
|
24 | module.exports = testFixture;
|