A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
504 B
26 lines
504 B
import ConsoleClient from '../../../src/content/client/ConsoleClient'; |
|
|
|
export default class MockConsoleClient implements ConsoleClient { |
|
public isError: boolean; |
|
|
|
public text: string; |
|
|
|
constructor() { |
|
this.isError = false; |
|
this.text = ''; |
|
} |
|
|
|
info(text: string): Promise<void> { |
|
this.isError = false; |
|
this.text = text; |
|
return Promise.resolve(); |
|
} |
|
|
|
error(text: string): Promise<void> { |
|
this.isError = true; |
|
this.text = text; |
|
return Promise.resolve(); |
|
} |
|
} |
|
|
|
|
|
|