@@ -173,7 +173,7 @@ describe('Runnable(title, fn)', function () {
173
173
var run ;
174
174
175
175
beforeEach ( function ( ) {
176
- run = new Runnable ( 'foo' , function ( done ) { } ) ;
176
+ run = new Runnable ( 'foo' , function ( ) { } ) ;
177
177
} ) ;
178
178
179
179
it ( 'should be .async' , function ( ) {
@@ -387,7 +387,7 @@ describe('Runnable(title, fn)', function () {
387
387
} ) ;
388
388
389
389
it ( 'should not throw its own exception if passed a non-object' , function ( done ) {
390
- var runnable = new Runnable ( 'foo' , function ( done ) {
390
+ var runnable = new Runnable ( 'foo' , function ( ) {
391
391
/* eslint no-throw-literal: off */
392
392
throw null ;
393
393
} ) ;
@@ -401,7 +401,7 @@ describe('Runnable(title, fn)', function () {
401
401
402
402
describe ( 'when an exception is thrown and is allowed to remain uncaught' , function ( ) {
403
403
it ( 'throws an error when it is allowed' , function ( done ) {
404
- var runnable = new Runnable ( 'foo' , function ( done ) {
404
+ var runnable = new Runnable ( 'foo' , function ( ) {
405
405
throw new Error ( 'fail' ) ;
406
406
} ) ;
407
407
runnable . allowUncaught = true ;
@@ -465,7 +465,7 @@ describe('Runnable(title, fn)', function () {
465
465
466
466
it ( 'should allow updating the timeout' , function ( done ) {
467
467
var spy = sinon . spy ( ) ;
468
- var runnable = new Runnable ( 'foo' , function ( done ) {
468
+ var runnable = new Runnable ( 'foo' , function ( ) {
469
469
setTimeout ( spy , 1 ) ;
470
470
setTimeout ( spy , 100 ) ;
471
471
} ) ;
@@ -509,7 +509,7 @@ describe('Runnable(title, fn)', function () {
509
509
510
510
describe ( 'when the promise is fulfilled with a value' , function ( ) {
511
511
var fulfilledPromise = {
512
- then : function ( fulfilled , rejected ) {
512
+ then : function ( fulfilled ) {
513
513
setTimeout ( function ( ) {
514
514
fulfilled ( { } ) ;
515
515
} ) ;
@@ -531,7 +531,7 @@ describe('Runnable(title, fn)', function () {
531
531
describe ( 'when the promise is rejected' , function ( ) {
532
532
var expectedErr = new Error ( 'fail' ) ;
533
533
var rejectedPromise = {
534
- then : function ( fulfilled , rejected ) {
534
+ then : function ( _fulfilled , rejected ) {
535
535
setTimeout ( function ( ) {
536
536
rejected ( expectedErr ) ;
537
537
} ) ;
@@ -553,7 +553,7 @@ describe('Runnable(title, fn)', function () {
553
553
describe ( 'when the promise is rejected without a reason' , function ( ) {
554
554
var expectedErr = new Error ( 'Promise rejected with no or falsy reason' ) ;
555
555
var rejectedPromise = {
556
- then : function ( fulfilled , rejected ) {
556
+ then : function ( _fulfilled , rejected ) {
557
557
setTimeout ( function ( ) {
558
558
rejected ( ) ;
559
559
} ) ;
@@ -623,7 +623,7 @@ describe('Runnable(title, fn)', function () {
623
623
624
624
describe ( 'if async' , function ( ) {
625
625
it ( 'this.skip() should set runnable to pending' , function ( done ) {
626
- var runnable = new Runnable ( 'foo' , function ( done ) {
626
+ var runnable = new Runnable ( 'foo' , function ( ) {
627
627
// normally "this" but it gets around having to muck with a context
628
628
runnable . skip ( ) ;
629
629
} ) ;
@@ -636,7 +636,7 @@ describe('Runnable(title, fn)', function () {
636
636
637
637
it ( 'this.skip() should halt synchronous execution' , function ( done ) {
638
638
var aborted = true ;
639
- var runnable = new Runnable ( 'foo' , function ( done ) {
639
+ var runnable = new Runnable ( 'foo' , function ( ) {
640
640
// normally "this" but it gets around having to muck with a context
641
641
runnable . skip ( ) ;
642
642
/* istanbul ignore next */
0 commit comments