* Run prettier and convert to standard eslint * Add CI, fix broken test * Update package.json Co-authored-by: Lee Robinson <me@leerob.io> * switch to single quote * remove tests for now Co-authored-by: Lee Robinson <me@leerob.io>
27 lines
390 B
JavaScript
27 lines
390 B
JavaScript
class LogMock {
|
|
constructor(actions) {
|
|
this.actions = actions;
|
|
}
|
|
|
|
info(text) {
|
|
this.actions.push(`> ${text}`);
|
|
}
|
|
|
|
warn(text) {
|
|
this.actions.push(`> WARN ${text}`);
|
|
}
|
|
|
|
error(text) {
|
|
if (text.message) text = text.message;
|
|
this.actions.push(`> ERR! ${text}`);
|
|
}
|
|
|
|
enableProgress() {}
|
|
|
|
showProgress() {}
|
|
|
|
disableProgress() {}
|
|
}
|
|
|
|
export default LogMock;
|