diff --git a/tests/globalize_test.js b/tests/globalize_test.js index fde42bf..cf26185 100644 --- a/tests/globalize_test.js +++ b/tests/globalize_test.js @@ -5,9 +5,9 @@ const when = require('when'); const globalize = require('../lib/addMethod/globalize'); -let devMode = process.env.NODE_ENV === 'development'; +const devMode = process.env.NODE_ENV === 'development'; function handleDevFlagTest (testMessage, testFunction) { - it(testMessage, function (done) { + it(testMessage, (done) => { if (devMode) { testFunction(done); } else {