feature: package: putout v29.0.3

This commit is contained in:
coderaiser 2023-03-08 12:26:57 +02:00
parent 14b05d1b14
commit 6b22b2412b
8 changed files with 21 additions and 9 deletions

View file

@ -13,7 +13,10 @@ test('cloudcmd: client: listeners: getIndex: not found', (t) => {
});
test('cloudcmd: client: listeners: getIndex: found', (t) => {
const array = ['hello', 'world'];
const array = [
'hello',
'world',
];
t.equal(getIndex(array, 'world'), 1, 'should return index');
t.end();

View file

@ -6,7 +6,10 @@ const dir = '../../../client/listeners';
const getRange = require(`${dir}/get-range`);
test('cloudcmd: client: listeners: getRange: direct', (t) => {
const expected = ['hello', 'world'];
const expected = [
'hello',
'world',
];
const files = [...expected, 'how', 'come'];
const result = getRange(0, 1, files);
@ -15,7 +18,10 @@ test('cloudcmd: client: listeners: getRange: direct', (t) => {
});
test('cloudcmd: client: listeners: getRange: reverse', (t) => {
const expected = ['hello', 'world'];
const expected = [
'hello',
'world',
];
const files = [...expected, 'how', 'come'];
const result = getRange(1, 0, files);

View file

@ -11,6 +11,7 @@ const config = {
const cloudcmd = require('../..');
const configManager = cloudcmd.createConfigManager();
configManager('auth', false);
const {request} = require('serve-once')(cloudcmd, {