diff --git a/common/callbackify.spec.js b/common/callbackify.spec.js index 9558dfcb..3628fc76 100644 --- a/common/callbackify.spec.js +++ b/common/callbackify.spec.js @@ -13,7 +13,8 @@ test('cloudcmd: common: callbackify: error', async (t) => { const promise = stub().rejects(Error('hello')); const fn = callbackify(promise); - const [error] = await tryToCatch(promisify(fn)); + const newPromise = promisify(fn); + const [error] = await tryToCatch(newPromise); t.equal(error.message, 'hello'); t.end(); diff --git a/common/cloudfunc.js b/common/cloudfunc.js index 64728094..ab56d8a3 100644 --- a/common/cloudfunc.js +++ b/common/cloudfunc.js @@ -229,7 +229,8 @@ module.exports.buildFromJSON = (params) => { owner, mode, }); - }).join(''); + }) + .join(''); fileTable += ''; diff --git a/common/try-to-promise-all.spec.js b/common/try-to-promise-all.spec.js index 628bc931..0e4a25a9 100644 --- a/common/try-to-promise-all.spec.js +++ b/common/try-to-promise-all.spec.js @@ -6,7 +6,7 @@ const tryToPromiseAll = require('./try-to-promise-all'); const resolve = Promise.resolve.bind(Promise); const reject = Promise.reject.bind(Promise); -test('try-to-promise-all', async (t) => { +test('commons: try-to-promise-all', async (t) => { const [, ...result] = await tryToPromiseAll([ resolve('a'), resolve('b'), @@ -18,7 +18,7 @@ test('try-to-promise-all', async (t) => { t.end(); }); -test('try-to-promise-all: error', async (t) => { +test('commons: try-to-promise-all: error', async (t) => { const [e] = await tryToPromiseAll([ reject('a'), ]); diff --git a/server/distribute/log.spec.js b/server/distribute/log.spec.js index 1078c82a..64549a49 100644 --- a/server/distribute/log.spec.js +++ b/server/distribute/log.spec.js @@ -31,4 +31,6 @@ test('distribute: log: config', (t) => { config('log', logOriginal); t.end(); +}, { + checkAssertionsCount: false }); diff --git a/test/server/columns.js b/test/server/columns.js index c57705d7..cd48247e 100644 --- a/test/server/columns.js +++ b/test/server/columns.js @@ -5,7 +5,7 @@ const fs = require('fs'); const {reRequire} = require('mock-require'); const columnsPath = '../../server/columns'; -test('columns', (t) => { +test('columns: prod', (t) => { const {NODE_ENV} = process.env; process.env.NODE_ENV = ''; const columns = reRequire(columnsPath);