mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
81e76857da
commit
ef10ebe97c
40 changed files with 137 additions and 134 deletions
|
|
@ -8,10 +8,10 @@ const ponse = require('ponse');
|
|||
const threadIt = require('thread-it');
|
||||
const {read} = require('redzip');
|
||||
|
||||
const parse = threadIt(join(__dirname, 'worker'));
|
||||
|
||||
const root = require('../root');
|
||||
|
||||
const parse = threadIt(join(__dirname, 'worker'));
|
||||
|
||||
threadIt.init();
|
||||
|
||||
// warm up
|
||||
|
|
|
|||
|
|
@ -10,20 +10,20 @@ const test = require('supertape');
|
|||
|
||||
const markdown = require('.');
|
||||
|
||||
const _markdown = promisify(markdown);
|
||||
const fixtureDir = join(__dirname, 'fixture');
|
||||
const cloudcmd = require('../..');
|
||||
const config = {
|
||||
auth: false,
|
||||
};
|
||||
|
||||
const configManager = cloudcmd.createConfigManager();
|
||||
|
||||
const {request} = require('serve-once')(cloudcmd, {
|
||||
config,
|
||||
configManager,
|
||||
});
|
||||
|
||||
const fixtureDir = join(__dirname, 'fixture');
|
||||
|
||||
const _markdown = promisify(markdown);
|
||||
|
||||
test('cloudcmd: markdown: error', async (t) => {
|
||||
const {body} = await request.get('/api/v1/markdown/not-found');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue