Skip to content

Commit 2d5f927

Browse files
committed
chore(fileop) lint
1 parent 0ef2eeb commit 2d5f927

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

test/client/fileop.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,7 @@ test('client: disconnect', async (t) => {
272272
});
273273

274274
test('client: auth: reject', async (t) => {
275-
const auth = (accept, reject) => () => {
276-
reject();
277-
};
275+
const auth = (accept, reject) => reject;
278276

279277
const {
280278
done,
@@ -299,9 +297,7 @@ test('client: auth: reject', async (t) => {
299297
});
300298

301299
test('client: options', async (t) => {
302-
const auth = (accept) => () => {
303-
accept();
304-
};
300+
const auth = (accept) => accept;
305301

306302
const socketPrefix = '/hello';
307303

test/server/fileop.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ test('fileop: options: auth not function', async (t) => {
3535
});
3636

3737
test('fileop: options: auth: reject', async (t) => {
38-
const auth = (accept, reject) => () => {
39-
reject();
40-
};
38+
const auth = (accept, reject) => reject;
4139

4240
const {
4341
socket,
@@ -56,9 +54,7 @@ test('fileop: options: auth: reject', async (t) => {
5654
});
5755

5856
test('fileop: options: auth: accept', async (t) => {
59-
const auth = (accept) => () => {
60-
accept();
61-
};
57+
const auth = (accept) => accept;
6258

6359
const {
6460
socket,

0 commit comments

Comments
 (0)