@@ -4,7 +4,6 @@ process.env.NODE_ENV = 'test';
44
55require ( 'babel-register' ) ;
66
7- const { EventEmitter} = require ( 'events' ) ;
87const test = require ( 'tape' ) ;
98const { promisify} = require ( 'es6-promisify' ) ;
109const socketIO = require ( 'socket.io-client' ) ;
@@ -118,7 +117,6 @@ test('client: zip: error', async (t) => {
118117
119118 const operator = await fileop ( ) ;
120119 const op = await operator . zip ( from , to , files ) ;
121- const { socket} = op ;
122120 const destroy = getDestroy ( op ) ;
123121
124122 op . on ( 'error' , ( e ) => {
@@ -134,17 +132,13 @@ test('client: zip: error', async (t) => {
134132test ( 'client: extract: error' , async ( t ) => {
135133 const from = '/hello' ;
136134 const to = '/world' ;
137- const files = [
138- 'abc'
139- ] ;
140135
141136 const { done, origin} = await connect ( ) ;
142137
143138 before ( { origin} ) ;
144139
145140 const operator = await fileop ( ) ;
146141 const op = await operator . extract ( from , to ) ;
147- const { socket} = op ;
148142 const destroy = getDestroy ( op ) ;
149143
150144 op . on ( 'error' , ( e ) => {
@@ -161,18 +155,13 @@ test('client: extract: error', async (t) => {
161155test ( 'client: dynamic load socket.io' , async ( t ) => {
162156 const from = '/hello' ;
163157 const to = '/world' ;
164- const files = [
165- 'abc'
166- ] ;
167-
168158 const { done, origin} = await connect ( ) ;
169159
170160 const io = null ;
171161 before ( { origin, io} ) ;
172162
173163 const operator = await fileop ( ) ;
174164 const op = await operator . extract ( from , to ) ;
175- const { socket} = op ;
176165 const destroy = getDestroy ( op ) ;
177166
178167 op . on ( 'error' , ( e ) => {
@@ -240,12 +229,6 @@ test('client: disconnect', async (t) => {
240229} ) ;
241230
242231test ( 'client: auth' , async ( t ) => {
243- const from = '/hello' ;
244- const to = '/world' ;
245- const files = [
246- 'abc'
247- ] ;
248-
249232 const authCheck = ( username , password , accept , reject ) => {
250233 reject ( ) ;
251234 } ;
@@ -269,12 +252,6 @@ test('client: auth', async (t) => {
269252} ) ;
270253
271254test ( 'client: options' , async ( t ) => {
272- const from = '/hello' ;
273- const to = '/world' ;
274- const files = [
275- 'abc'
276- ] ;
277-
278255 const authCheck = ( username , password , accept , reject ) => {
279256 reject ( ) ;
280257 } ;
0 commit comments