Hi,
I've noticed the node <div id="mocha"></div> is created by this plugin whenever I'm running karma in debug mode and the mocha reporter is set to "spec".
This node is only used by the mocha HTML reporter so ...
Should this code
|
if (isDebugPage && haveMochaConfig(tc) && tc.config.mocha.reporter) { |
|
createMochaReporterNode() |
|
return tc.config.mocha.reporter |
|
} |
be changed to check which reporter is used like this?
if (isDebugPage && haveMochaConfig(tc) && tc.config.mocha.reporter === 'html') {
createMochaReporterNode()
return tc.config.mocha.reporter
}