File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -272,9 +272,7 @@ test('client: disconnect', async (t) => {
272272} ) ;
273273
274274test ( '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
301299test ( 'client: options' , async ( t ) => {
302- const auth = ( accept ) => ( ) => {
303- accept ( ) ;
304- } ;
300+ const auth = ( accept ) => accept ;
305301
306302 const socketPrefix = '/hello' ;
307303
Original file line number Diff line number Diff line change @@ -35,9 +35,7 @@ test('fileop: options: auth not function', async (t) => {
3535} ) ;
3636
3737test ( '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
5856test ( 'fileop: options: auth: accept' , async ( t ) => {
59- const auth = ( accept ) => ( ) => {
60- accept ( ) ;
61- } ;
57+ const auth = ( accept ) => accept ;
6258
6359 const {
6460 socket,
You can’t perform that action at this time.
0 commit comments