build/karma.test.reporter.js
Function StratosSpecReporter
has 108 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var StratosSpecReporter = function (baseReporterDecorator, config) {
baseReporterDecorator(this);
const reporterConfig = Object.assign({}, config.stratosReporter);
this.file = reporterConfig.reportFile || './stratos-test-report.log';
Function onRunComplete
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.onRunComplete = (browser, result) => {
if (fs.existsSync(this.file)) {
fs.unlinkSync(this.file);
}