Skip to content

Commit

Permalink
Switched to template-literal to address issue caolan#346
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisJohn404 committed Apr 30, 2022
1 parent 3becf9a commit 300e202
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Features
* Works with node.js and in the browser
* Helps you avoid common pitfalls when testing asynchronous code
* Easy to add test cases with setUp and tearDown functions if you wish
* Flexible reporters for custom output, built-in support for HTML
* Flexible reporters for custom output, built-in support for HTML and jUnit XML
* Allows the use of mocks and stubs

Contributors
Expand Down
15 changes: 2 additions & 13 deletions lib/reporters/index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
// This is a hack to make browserify skip tap
var tap;
try {
tap = require('./' + 'tap');
} catch (ex) {
tap = {
run: function() {
throw new Error('Sorry, tap reporter not available');
}
};
}

module.exports = {
// 'junit': require('./junit'),
'junit': require('./junit'),
'default': require('./default'),
'skip_passed': require('./skip_passed'),
'minimal': require('./minimal'),
'html': require('./html'),
'eclipse': require('./eclipse'),
'machineout': require('./machineout'),
// 'tap': tap,
// 'tap': require('./tap'),
'nested': require('./nested'),
'verbose' : require('./verbose'),
'lcov' : require('./lcov')
Expand Down
3 changes: 2 additions & 1 deletion lib/reporters/junit.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ var nodeunit = require('../nodeunit'),
async = require('../../deps/async'),
AssertionError = require('../assert').AssertionError,
child_process = require('child_process'),
ejs = require('ejs');
// ejs = require('ejs');
ejs = require('template-literal');


/**
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,8 @@
},
"scripts": {
"test": "node ./bin/nodeunit"
},
"dependencies": {
"template-literal": "^1.0.4"
}
}

0 comments on commit 300e202

Please sign in to comment.