/** * Init logger * @param {String} filename The main filename * @param {String} errorFilename The error filename * @return {Object} This logger */ constructor(filename, errorFilename) { console.log(filename) this.output = fs.createWriteStream(filename); this.errorOutput = fs.createWriteStream(errorFilename); this.console = new console.Console(this.output, this.errorOutput); }
app.handleMockCallback(request.body) expect(app._authorizer._logger._logger).to.not.be.undefined expect(app._authorizer._logger._logger).to.be.an.instanceOf(console.Console) }) })