chore(cloudcmd) lint

This commit is contained in:
coderaiser 2019-03-14 12:19:08 +02:00
parent 916b971e77
commit 943924adef
3 changed files with 6 additions and 11 deletions

View file

@ -10,9 +10,8 @@ const mockRequire = require('mock-require');
const {reRequire} = mockRequire;
const serveOnce = require('serve-once');
const root = '../../';
const dir = root + 'server/';
const cloudcmdPath = root;
const cloudcmdPath = '../../';
const dir = cloudcmdPath + 'server/';
const restPath = dir + 'rest';
test('cloudcmd: rest: mv', async (t) => {

View file

@ -4,12 +4,11 @@ const {join} = require('path');
const test = require('supertape');
const stub = require('@cloudcmd/stub');
const dir = join(__dirname, '..', '..');
const modulesPath = join(dir, 'json', 'modules.json');
const cloudcmdPath = dir;
const cloudcmdPath = join(__dirname, '..', '..');
const modulesPath = join(cloudcmdPath, 'json', 'modules.json');
const localModules = require(modulesPath);
const modulas = require(`${dir}/server/modulas`);
const modulas = require(`${cloudcmdPath}/server/modulas`);
const cloudcmd = require(cloudcmdPath);
const {request} = require('serve-once')(cloudcmd, {