Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

rename `mocha init` tests.html to index.html

TJ Holowaychuk24754b836a01
diff --git a/bin/_mocha b/bin/_mocha
index d1187405..c16ea7b0 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -93,7 +93,8 @@ program
var tmpl = fs.readFileSync(join(__dirname, '..', 'lib/template.html'));
fs.writeFileSync(join(path, 'mocha.css'), css);
fs.writeFileSync(join(path, 'mocha.js'), js);
- fs.writeFileSync(join(path, 'tests.html'), tmpl);
+ fs.writeFileSync(join(path, 'tests.js'), '');
+ fs.writeFileSync(join(path, 'index.html'), tmpl);
process.exit(0);
});