chore(cloudcmd) lint

This commit is contained in:
coderaiser 2022-03-06 19:45:08 +02:00
parent 66fdb550a6
commit d8d9025286
5 changed files with 9 additions and 5 deletions

View file

@ -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();

View file

@ -229,7 +229,8 @@ module.exports.buildFromJSON = (params) => {
owner,
mode,
});
}).join('');
})
.join('');
fileTable += '</ul>';

View file

@ -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'),
]);