11'use strict' ;
22
33const expect = require ( 'chai' ) . expect ;
4- const path = require ( 'path' ) ;
54const FastBoot = require ( 'fastboot' ) ;
65const fastbootMiddleware = require ( './../src/index' ) ;
76const fixture = require ( './helpers/fixture-path' ) ;
@@ -85,7 +84,7 @@ describe("FastBoot", function() {
8584 . then ( hotReloadApp )
8685 . then ( requestSecondApp ) ;
8786
88- function requestFirstApp ( info ) {
87+ function requestFirstApp ( ) {
8988 return server . request ( '/' )
9089 . then ( function ( html ) {
9190 expect ( html ) . to . match ( / W e l c o m e t o E m b e r / ) ;
@@ -98,14 +97,15 @@ describe("FastBoot", function() {
9897 } ) ;
9998 }
10099
101- function requestSecondApp ( info ) {
100+ function requestSecondApp ( ) {
102101 return server . request ( '/' )
103102 . then ( function ( html ) {
104103 expect ( html ) . to . match ( / G o o d b y e f r o m E m b e r / ) ;
105104 } ) ;
106105 }
107106 } ) ;
108107
108+ /* eslint-disable mocha/no-setup-in-describe */
109109 [ true , false ] . forEach ( ( chunkedResponse ) => {
110110 describe ( `when chunked response is ${ chunkedResponse ? 'enabled' : 'disabled' } ` , function ( ) {
111111 if ( chunkedResponse ) {
@@ -118,7 +118,7 @@ describe("FastBoot", function() {
118118
119119 return server . start ( )
120120 . then ( ( ) => server . request ( '/' , { resolveWithFullResponse : true } ) )
121- . then ( ( { body, _ , headers } ) => {
121+ . then ( ( { body, headers } ) => {
122122 expect ( headers [ 'transfer-encoding' ] ) . to . eq ( 'chunked' ) ;
123123 expect ( body ) . to . match ( / W e l c o m e t o E m b e r / ) ;
124124 } ) ;
@@ -258,4 +258,5 @@ describe("FastBoot", function() {
258258 } ) ;
259259 } ) ;
260260 } ) ;
261+ /* eslint-enable mocha/no-setup-in-describe */
261262} ) ;
0 commit comments