44let SerializedRunner = require ( "../lib/util/runner" ) ;
55let { strictEqual : assertSame , deepStrictEqual : assertDeep } = require ( "assert" ) ;
66
7- describe ( "watch mode" , _ => {
7+ describe ( "watch mode" , ( ) => {
88 it ( "avoids concurrent compilation, queueing recompilation" , ( ) => {
99 let bundle = new MockBundle ( ) ;
1010
@@ -13,7 +13,7 @@ describe("watch mode", _ => {
1313 bundle . compile ( ) ; // skipped due to queue limit
1414 let prevLog ; // keeps track of compilation sequence
1515 return bundle . compile ( ) . // skipped due to queue limit
16- then ( _ => {
16+ then ( ( ) => {
1717 let log = bundle . executionLog ;
1818 assertSame ( log . length , 2 ) ; // compiled, then recompiled once
1919 prevLog = [ ] . concat ( log ) ;
@@ -23,15 +23,15 @@ describe("watch mode", _ => {
2323 bundle . compile ( ) ; // skipped due to queue limit
2424 return bundle . compile ( ) ; // skipped due to queue limit
2525 } ) .
26- then ( _ => {
26+ then ( ( ) => {
2727 let log = bundle . executionLog ;
2828 assertSame ( log . length , 4 ) ; // compiled, then recompiled once
2929 assertDeep ( log . slice ( 0 , prevLog . length ) , prevLog ) ;
3030 prevLog = [ ] . concat ( bundle . executionLog ) ;
3131
3232 return bundle . compile ( ) ; // starts compilation
3333 } ) .
34- then ( _ => {
34+ then ( ( ) => {
3535 let log = bundle . executionLog ;
3636 assertSame ( log . length , 5 ) ;
3737 assertDeep ( log . slice ( 0 , prevLog . length ) , prevLog ) ;
@@ -57,7 +57,7 @@ class MockBundle {
5757
5858 _compile ( id ) {
5959 return wait ( 1 ) .
60- then ( _ => {
60+ then ( ( ) => {
6161 if ( id ) {
6262 this . executionLog . push ( id ) ;
6363 }
@@ -67,6 +67,6 @@ class MockBundle {
6767
6868function wait ( delay ) {
6969 return new Promise ( resolve => {
70- setTimeout ( _ => { resolve ( ) ; } , delay ) ;
70+ setTimeout ( ( ) => { resolve ( ) ; } , delay ) ;
7171 } ) ;
7272}
0 commit comments