Skip to content

Commit 907afc6

Browse files
committed
chore: test: lint
1 parent d8da792 commit 907afc6

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

test/before.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ export const connect = promisify((options, fn = options) => {
6464
});
6565
});
6666

67-
function defaultConfig() {
68-
return {
69-
auth: false,
70-
root: __dirname,
71-
};
72-
}
67+
const defaultConfig = () => ({
68+
auth: false,
69+
root: __dirname,
70+
});

test/rest/pack.mjs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,8 @@ test('cloudcmd: rest: pack: zip: put: error', async (t) => {
224224
t.end();
225225
});
226226

227-
function getPackOptions(to, names = ['pack']) {
228-
return {
229-
to,
230-
names,
231-
from: '/fixture',
232-
};
233-
}
227+
const getPackOptions = (to, names = ['pack']) => ({
228+
to,
229+
names,
230+
from: '/fixture',
231+
});

0 commit comments

Comments
 (0)