update extension deps

This commit is contained in:
Fabian Freund
2025-12-14 11:19:26 +01:00
parent c7903bcfe8
commit fd478ef4db
8 changed files with 1765 additions and 7162 deletions
@@ -1,6 +1,5 @@
import BackgroundMain, { doNotProxy } from '../../src/background/BackgroundMain'
import { Store } from '../../src/store/Store'
import webExtensionsApiFake from 'webextensions-api-fake'
import { expect } from 'chai'
import { ProxySettings } from '../../src/domain/ProxySettings'
@@ -8,12 +7,13 @@ const tryFromDao = ProxySettings.tryFromDao
/* eslint-disable @typescript-eslint/no-unused-expressions */
const chrome = require('sinon-chrome/extensions');
const store = new Store()
describe('BackgroundMain', function () {
beforeEach(() => {
// @ts-expect-error
global.browser = webExtensionsApiFake()
global.browser = chrome
})
afterEach(() => {
@@ -1,9 +1,9 @@
import { ProxyDao, Store } from '../../src/store/Store'
import webExtensionsApiFake from 'webextensions-api-fake'
import { expect } from 'chai'
import { ProxySettings } from '../../src/domain/ProxySettings'
const tryFromDao = ProxySettings.tryFromDao
const chrome = require('sinon-chrome/extensions');
/* eslint-disable @typescript-eslint/no-unused-expressions */
@@ -11,7 +11,7 @@ describe('Store', () => {
const store = new Store()
beforeEach(() => {
(global as any).browser = webExtensionsApiFake()
(global as any).browser = chrome
})
afterEach(() => {