Skip to content

Commit

Permalink
add missing methods to OraMock
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee committed Sep 3, 2019
1 parent c6d55d3 commit 4f3f016
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/cli/src/tools/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ import Ora from 'ora';
import logger from './logger';

class OraNoop {
succeed() {}
fail() {}
start(message?: string) {}
info(message?: string) {}
succeed(text?: string) {}
fail(text?: string) {}
start(text?: string) {}
stop() {}
warn(text?: string) {}
info(text?: string) {}
stopAndPersist() {}
clear() {}
render() {}
frame() {}
}

export function getLoader(): typeof Ora {
Expand Down

0 comments on commit 4f3f016

Please sign in to comment.