diff --git a/.madrun.mjs b/.madrun.mjs index 82ce4fba..1e540a8a 100644 --- a/.madrun.mjs +++ b/.madrun.mjs @@ -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']), diff --git a/client/key/vim/index.spec.js b/client/key/vim/index.spec.js index 013611f0..f0ed9b58 100644 --- a/client/key/vim/index.spec.js +++ b/client/key/vim/index.spec.js @@ -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, diff --git a/client/modules/user-menu/parse-error.spec.js b/client/modules/user-menu/parse-error.spec.js index ebd21553..b4ee299b 100644 --- a/client/modules/user-menu/parse-error.spec.js +++ b/client/modules/user-menu/parse-error.spec.js @@ -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), :1:2) diff --git a/server/config.spec.js b/server/config.spec.js index 046f8a52..6bca55cd 100644 --- a/server/config.spec.js +++ b/server/config.spec.js @@ -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, diff --git a/server/markdown/index.spec.js b/server/markdown/index.spec.js index 7441b1e8..3a6dde60 100644 --- a/server/markdown/index.spec.js +++ b/server/markdown/index.spec.js @@ -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 = { diff --git a/server/route.spec.js b/server/route.spec.js index 60f0aefc..d557174a 100644 --- a/server/route.spec.js +++ b/server/route.spec.js @@ -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, }; diff --git a/test/common/cloudfunc.js b/test/common/cloudfunc.js index 6b36c90a..9ce6de77 100644 --- a/test/common/cloudfunc.js +++ b/test/common/cloudfunc.js @@ -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'; diff --git a/test/server/show-config.js b/test/server/show-config.js index b3b4cf0e..af4f1ebb 100644 --- a/test/server/show-config.js +++ b/test/server/show-config.js @@ -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(); });