diff --git a/bin/_mocha b/bin/_mocha index b05b5ab0c4..55529a7df8 100755 --- a/bin/_mocha +++ b/bin/_mocha @@ -143,8 +143,8 @@ const requires = []; */ const images = { - fail: path.join(__dirname, '..', 'assets/growl', 'error.png'), - pass: path.join(__dirname, '..', 'assets/growl', 'ok.png') + fail: path.join(__dirname, '..', 'assets', 'growl', 'error.png'), + pass: path.join(__dirname, '..', 'assets', 'growl', 'ok.png') }; // options diff --git a/lib/mocha.js b/lib/mocha.js index f5c51c5e02..078d4ee9ef 100644 --- a/lib/mocha.js +++ b/lib/mocha.js @@ -69,7 +69,7 @@ exports.Test = require('./test'); * @return {string} */ function image (name) { - return path.join(__dirname, '../assests/growl', name + '.png'); + return path.join(__dirname, '..', 'assets', 'growl', name + '.png'); } /**