Skip to content

Commit

Permalink
cleanup and docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gruber committed Aug 5, 2015
1 parent 20507e3 commit b9b86f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#Changelog

###1.2.1
- Reset `totalTestsRegistered` when reporter is run. [PR #21](https://github.com/adamgruber/mochawesome/pull/21)

###1.2.0
- Enhancement: custom report title option. Closes [#11](https://github.com/adamgruber/mochawesome/issues/11)
- Fixed indentation in code block and stack traces
Expand Down
7 changes: 3 additions & 4 deletions lib/mochawesome.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ var mocha = require('mocha'),

var Base = mocha.reporters.Base,
generateReport = reportGen.generateReport,
saveToFile = reportGen.saveToFile;

var totalTestsRegistered = 0;
saveToFile = reportGen.saveToFile,
totalTestsRegistered;

Highlight.configure({
useBR: true,
Expand All @@ -30,7 +29,7 @@ module.exports = Mochawesome;
*/

function Mochawesome (runner, options) {
// reset total tests counter
// Reset total tests counter
totalTestsRegistered = 0;

// Create/Save necessary report dirs/files
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mochawesome",
"version": "1.2.0",
"version": "1.2.1",
"description": "A Gorgeous HTML/CSS Reporter for Mocha.js",
"scripts": {
"test": "gulp build"
Expand Down

0 comments on commit b9b86f6

Please sign in to comment.