Skip to content

Commit 2ba1d88

Browse files
committed
chore(fileop) lint
1 parent 930013b commit 2ba1d88

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

test/client/fileop.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ process.env.NODE_ENV = 'test';
44

55
require('babel-register');
66

7-
const {EventEmitter} = require('events');
87
const test = require('tape');
98
const {promisify} = require('es6-promisify');
109
const 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) => {
134132
test('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) => {
161155
test('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

242231
test('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

271254
test('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
};

test/client/operator.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ test('client: operator: pause', (t) => {
4949
const socket = new EventEmitter();
5050
const op = operator(id, socket);
5151

52-
const errorEvent = `${id}#error`;
5352
const pauseEvent = `${id}#pause`;
5453

5554
socket.on(pauseEvent, () => {

test/server/fileop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test('fileop: options: authCheck: reject', async (t) => {
4949
});
5050

5151
test('fileop: options: authCheck: accept', async (t) => {
52-
const authCheck = (username, password, accept, reject) => {
52+
const authCheck = (username, password, accept) => {
5353
accept();
5454
};
5555

0 commit comments

Comments
 (0)