Skip to content

Commit 414a793

Browse files
committed
test linted
1 parent 7278485 commit 414a793

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint consistent-return: off */
12
const test = require('ava');
23
const tress = require('.');
34

@@ -182,10 +183,10 @@ test('bad callback errors', t => {
182183
const q = tress((job, done) => done(null));
183184
t.throws(() => q.push(1, 1));
184185
t.throws(() => q.push());
185-
t.throws(() => q.push(() => {}));
186+
t.throws(() => q.push(() => undefined));
186187
t.throws(() => q.unshift(1, 1));
187188
t.throws(() => q.unshift());
188-
t.throws(() => q.unshift(() => {}));
189+
t.throws(() => q.unshift(() => undefined));
189190
t.throws(() => {
190191
q.drain = 1;
191192
});
@@ -211,7 +212,7 @@ test('bad callback errors', t => {
211212

212213
test.cb('double callback error', t => {
213214
const q = tress((job, done) => {
214-
done(null); // eslint-disable-line
215+
done(null); // eslint-disable-line callback-return
215216
t.throws(() => done(null));
216217
t.end();
217218
});
@@ -355,7 +356,7 @@ test.cb('save', t => {
355356
if(job === 'foo'){
356357
return done(new Error());
357358
} else if(job === 'bar'){
358-
done(null); // eslint-disable-line
359+
done(null); // eslint-disable-line callback-return
359360
q.save(dump => {
360361
t.deepEqual(dump, {
361362
waiting: ['baz'],

0 commit comments

Comments
 (0)