- WIP: implement data pre-processor for #101

- implement checks for #101
- add some specs
This commit is contained in:
Sefa Ilkimen
2019-11-10 06:40:31 +01:00
parent cc3e70771c
commit 867b8ea202
7 changed files with 191 additions and 24 deletions
+11
View File
@@ -0,0 +1,11 @@
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 }); }
}