@@ -56,7 +56,7 @@ test('client: copy: error', async (t) => {
5656 after ( ) ;
5757 destroy ( ) ;
5858
59- t . equal ( e , 'ENOENT: /hello/abc' , 'should equal' ) ;
59+ t . equal ( e , 'ENOENT: /hello/abc' ) ;
6060 t . end ( ) ;
6161} ) ;
6262
@@ -83,7 +83,7 @@ test('client: move: error', async (t) => {
8383 after ( ) ;
8484 destroy ( ) ;
8585
86- t . equal ( e , 'ENOENT: /hello/abc' , 'should equal' ) ;
86+ t . equal ( e , 'ENOENT: /hello/abc' ) ;
8787 t . end ( ) ;
8888} ) ;
8989
@@ -104,10 +104,12 @@ test('client: remove: error', async (t) => {
104104 const op = await operator . remove ( from , files ) ;
105105 const destroy = getDestroy ( op ) ;
106106 const [ e ] = await once ( op , 'error' ) ;
107+
107108 done ( ) ;
108109 after ( ) ;
109110 destroy ( ) ;
110- t . equal ( e , 'ENOENT: /hello/abc' , 'should equal' ) ;
111+
112+ t . equal ( e , 'ENOENT: /hello/abc' ) ;
111113 t . end ( ) ;
112114} ) ;
113115
@@ -129,10 +131,12 @@ test('client: tar: error', async (t) => {
129131 const op = await operator . tar ( from , to , files ) ;
130132 const destroy = getDestroy ( op ) ;
131133 const [ e ] = await once ( op , 'error' ) ;
134+
132135 done ( ) ;
133136 after ( ) ;
134137 destroy ( ) ;
135- t . equal ( e , 'ENOENT: /hello/abc' , 'should equal' ) ;
138+
139+ t . equal ( e , 'ENOENT: /hello/abc' ) ;
136140 t . end ( ) ;
137141} ) ;
138142
@@ -154,10 +158,12 @@ test('client: zip: error', async (t) => {
154158 const op = await operator . zip ( from , to , files ) ;
155159 const destroy = getDestroy ( op ) ;
156160 const [ e ] = await once ( op , 'error' ) ;
161+
157162 destroy ( ) ;
158163 done ( ) ;
159164 after ( ) ;
160- t . equal ( e , 'ENOENT: /hello/abc' , 'should equal' ) ;
165+
166+ t . equal ( e , 'ENOENT: /hello/abc' ) ;
161167 t . end ( ) ;
162168} ) ;
163169
@@ -178,11 +184,13 @@ test('client: extract: error', async (t) => {
178184 const op = await operator . extract ( from , to ) ;
179185 const destroy = getDestroy ( op ) ;
180186 const [ e ] = await once ( op , 'error' ) ;
187+
181188 done ( ) ;
182189 after ( ) ;
183190 destroy ( ) ;
184191 const expected = 'Not supported archive type: ""' ;
185- t . equal ( e , expected , 'should equal' ) ;
192+
193+ t . equal ( e , expected ) ;
186194 t . end ( ) ;
187195} ) ;
188196
@@ -206,11 +214,13 @@ test('client: dynamic load socket.io', async (t) => {
206214 const op = await operator . extract ( from , to ) ;
207215 const destroy = getDestroy ( op ) ;
208216 const [ e ] = await once ( op , 'error' ) ;
217+
209218 done ( ) ;
210219 after ( ) ;
211220 destroy ( ) ;
212221 const expected = 'Not supported archive type: ""' ;
213- t . equal ( e , expected , 'should equal' ) ;
222+
223+ t . equal ( e , expected ) ;
214224 t . end ( ) ;
215225} ) ;
216226
@@ -231,11 +241,13 @@ test('client: get-host: no origin', async (t) => {
231241 const op = await operator . extract ( from , to ) ;
232242 const destroy = getDestroy ( op ) ;
233243 const [ e ] = await once ( op , 'error' ) ;
244+
234245 done ( ) ;
235246 after ( ) ;
236247 destroy ( ) ;
237248 const expected = 'Not supported archive type: ""' ;
238- t . equal ( e , expected , 'should equal' ) ;
249+
250+ t . equal ( e , expected ) ;
239251 t . end ( ) ;
240252} ) ;
241253
@@ -270,7 +282,7 @@ test('client: disconnect', async (t) => {
270282 after ( ) ;
271283 done ( ) ;
272284
273- t . equal ( e , 'ENOENT: /hello/abc' , 'should equal' ) ;
285+ t . equal ( e , 'ENOENT: /hello/abc' ) ;
274286 t . pass ( 'should disconnect' ) ;
275287 t . end ( ) ;
276288} ) ;
@@ -291,11 +303,13 @@ test('client: auth: reject', async (t) => {
291303
292304 const operator = await fileop ( ) ;
293305 const destroy = getDestroy ( operator ) ;
306+
294307 operator . emit ( 'auth' ) ;
295308 await once ( operator , 'reject' ) ;
296309 after ( ) ;
297310 done ( ) ;
298311 destroy ( ) ;
312+
299313 t . pass ( 'shoud reject' ) ;
300314 t . end ( ) ;
301315} ) ;
@@ -327,6 +341,7 @@ test('client: options', async (t) => {
327341 after ( ) ;
328342 done ( ) ;
329343 destroy ( ) ;
344+
330345 t . pass ( 'shoud accept' ) ;
331346 t . end ( ) ;
332347} ) ;
0 commit comments