1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

[PM-5742] Rework Usage of Extension APIs that Cannot be Called with the Background Service Worker (#7667)

* [PM-5742] Rework Usage of Extension APIs that Cannot be Called with the Background Service Worker

* [PM-5742] Implementing jest tests for the updated BrowserApi methods

* [PM-5742] Implementing jest tests to validate logic within added API calls

* [PM-5742] Implementing jest tests to validate logic within added API calls

* [PM-5742] Fixing broken Jest tests

* [PM-5742] Fixing linter error
This commit is contained in:
Cesar Gonzalez
2024-02-07 15:20:53 -06:00
committed by GitHub
parent 2e11fb2a24
commit a1745b2dae
6 changed files with 236 additions and 13 deletions

View File

@@ -105,6 +105,11 @@ const privacy = {
},
};
const extension = {
getBackgroundPage: jest.fn(),
getViews: jest.fn(),
};
// set chrome
global.chrome = {
i18n,
@@ -116,4 +121,5 @@ global.chrome = {
windows,
port,
privacy,
extension,
} as any;