mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-04 01:59:18 +02:00
avoid logs polluting the unit test output
This commit is contained in:
parent
751731414e
commit
29419d03cd
4 changed files with 12 additions and 12 deletions
|
@ -25,8 +25,8 @@ global.RawDeflate.inflate = require('./rawinflate-0.3').RawDeflate.inflate;
|
|||
require('./privatebin');
|
||||
|
||||
// redirect console messages to log file
|
||||
console.warn = console.error = function (msg) {
|
||||
logFile.write(msg + '\n');
|
||||
console.info = console.warn = console.error = function () {
|
||||
logFile.write(Array.prototype.slice.call(arguments).join('') + '\n');
|
||||
}
|
||||
|
||||
describe('Helper', function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue