setup mock browser object

This commit is contained in:
Vu Nguyen
2021-01-16 03:08:18 -06:00
parent 3839ad404b
commit 9ecc2144aa
9 changed files with 304 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
class BrowserMock {
runtime = {
getBackgroundPage() {
return 'https://background-page.html';
},
getManifest() {
return {
version: 'test-version',
};
},
openOptionsPage() {
return 'https://options-page.html';
},
};
}
export const browser = new BrowserMock();
export default { browser };