mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
867b8ea202
- implement checks for #101 - add some specs
12 lines
456 B
JavaScript
12 lines
456 B
JavaScript
module.exports = class ConsoleMock {
|
|
constructor() {
|
|
this.messageList = [];
|
|
}
|
|
|
|
debug(...message) { this.messageList.push({ type: 'debug', message }); }
|
|
error(...message) { this.messageList.push({ type: 'error', message }); }
|
|
log(...message) { this.messageList.push({ type: 'log', message }); }
|
|
info(...message) { this.messageList.push({ type: 'info', message }); }
|
|
warn(...message) { this.messageList.push({ type: 'warn', message }); }
|
|
}
|