☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix paths in prev commit
TJ Holowaychukffa72383fd6c
diff --git a/bin/_mocha b/bin/_mochaindex f152fef2..1a0595b2 100755--- a/bin/_mocha+++ b/bin/_mocha@@ -85,9 +85,9 @@ program.command('init <path>').description('initialize a client-side mocha setup at <path>').action(function(path){- var css = fs.readFileSync('mocha.css');- var js = fs.readFileSync('mocha.js');- var tmpl = fs.readFileSync('support/template.html');+ var css = fs.readFileSync(join(__dirname, 'mocha.css'));+ var js = fs.readFileSync(join(__dirname, 'mocha.js'));+ var tmpl = fs.readFileSync(join(__dirname, 'support/template.html'));fs.writeFileSync(join(path, 'mocha.css'), css);fs.writeFileSync(join(path, 'mocha.js'), js);fs.writeFileSync(join(path, 'tests.html'), tmpl);