mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: madrun: test: rm --check-duplicates
This commit is contained in:
parent
f5df731491
commit
52f47a2434
8 changed files with 9 additions and 26 deletions
|
|
@ -34,7 +34,7 @@ export default {
|
|||
'spell': () => 'yaspeller . || true',
|
||||
'fix:lint': () => run('lint', '--fix'),
|
||||
'lint:stream': () => run('lint', '-f stream'),
|
||||
'test': () => [testEnv, `tape --no-check-duplicates 'test/**/*.js' '{client,static,common,server}/**/*.spec.js' -f fail`],
|
||||
'test': () => [testEnv, `tape 'test/**/*.js' '{client,static,common,server}/**/*.spec.js' -f fail`],
|
||||
'test:client': () => `tape 'test/client/**/*.js'`,
|
||||
'test:server': () => `tape 'test/**/*.js' 'server/**/*.spec.js' 'common/**/*.spec.js'`,
|
||||
'wisdom': () => run(['lint:all', 'build', 'test']),
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ test('cloudcmd: client: key: set next file: no', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: client: key: set next file current', (t) => {
|
||||
test('cloudcmd: client: key: set next file current: j', (t) => {
|
||||
const nextSibling = 'hello';
|
||||
const element = {
|
||||
nextSibling,
|
||||
|
|
@ -59,7 +59,7 @@ test('cloudcmd: client: key: set next file current', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: client: key: set next file current', (t) => {
|
||||
test('cloudcmd: client: key: set next file current: mjj', (t) => {
|
||||
const nextSibling = 'hello';
|
||||
const element = {
|
||||
nextSibling,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ test('user-menu: parse-error', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('user-menu: parse-error', (t) => {
|
||||
test('user-menu: parse-error: stack', (t) => {
|
||||
const stack = `
|
||||
ReferenceError: s is not defined
|
||||
at eval (eval at module.exports (get-user-menu.js:NaN), <anonymous>:1:2)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ test('config: manage: get', async (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('config: manage: get', async (t) => {
|
||||
test('config: manage: get: config', async (t) => {
|
||||
const editor = 'deepword';
|
||||
const conf = {
|
||||
editor,
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ test('cloudcmd: markdown: no request', async (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: markdown: zip', async (t) => {
|
||||
test('cloudcmd: markdown', async (t) => {
|
||||
const configManager = cloudcmd.createConfigManager();
|
||||
const fixtureDir = join(__dirname, 'fixture');
|
||||
const config = {
|
||||
|
|
|
|||
|
|
@ -116,24 +116,7 @@ test('cloudcmd: route: buttons: one file panel: move', async (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: route: buttons: no one file panel: move', async (t) => {
|
||||
const config = {
|
||||
oneFilePanel: false,
|
||||
};
|
||||
|
||||
const options = {
|
||||
config,
|
||||
};
|
||||
|
||||
const {body} = await request.get('/', {
|
||||
options,
|
||||
});
|
||||
|
||||
t.notOk(/icon-move none/.test(body), 'should not hide move button');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: route: buttons: one file panel: move', async (t) => {
|
||||
test('cloudcmd: route: buttons: one file panel: copy', async (t) => {
|
||||
const config = {
|
||||
oneFilePanel: true,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ test('cloudfunc: formatMsg', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudfunc: formatMsg', (t) => {
|
||||
test('cloudfunc: formatMsg: no name', (t) => {
|
||||
const msg = 'hello';
|
||||
const name = null;
|
||||
const status = 'ok';
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ test('cloudcmd: show-config: bad arguments', (t) => {
|
|||
t.end();
|
||||
});
|
||||
|
||||
test('cloudcmd: show-config: return', (t) => {
|
||||
test('cloudcmd: show-config: empty: return', (t) => {
|
||||
t.equal(showConfig({}), '', 'should return string');
|
||||
t.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue