mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Use settings.root
to anchor pathnames
This commit is contained in:
parent
f868788417
commit
a45e85a730
3 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
const npm = require('npm');
|
||||
const fs = require('fs');
|
||||
const util = require('util');
|
||||
const settings = require('../../utils/Settings');
|
||||
|
@ -29,7 +28,7 @@ exports.expressCreateServer = (hookName, args, cb) => {
|
|||
res.end(`var specs_list = ${JSON.stringify(files)};\n`);
|
||||
});
|
||||
|
||||
const rootTestFolder = path.join(npm.root, '../tests/frontend/');
|
||||
const rootTestFolder = path.join(settings.root, 'src/tests/frontend/');
|
||||
|
||||
const url2FilePath = (url) => {
|
||||
let subPath = url.substr('/tests/frontend'.length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue