1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[deps]: Lock file maintenance (#13866)

* [deps]: Lock file maintenance

* add override for parse5 version to 7.2.1 (7.3.0 has breaking ts changes)

* manual rebuild of package-lock

* fix test event listeners persistence

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Prusik <jprusik@classynemesis.com>
Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2025-05-21 09:29:14 +02:00
committed by GitHub
parent 94815085ed
commit bc56bc8e37
5 changed files with 1160 additions and 1198 deletions

View File

@@ -21,10 +21,16 @@ describe("AutofillInlineMenuList", () => {
disconnect: jest.fn(),
}));
let autofillInlineMenuList: AutofillInlineMenuList;
let autofillInlineMenuList: AutofillInlineMenuList | null;
const portKey: string = "inlineMenuListPortKey";
const events: { eventName: any; callback: any }[] = [];
beforeEach(() => {
const oldEv = globalThis.addEventListener;
globalThis.addEventListener = (eventName: any, callback: any) => {
events.push({ eventName, callback });
oldEv.call(globalThis, eventName, callback);
};
document.body.innerHTML = `<autofill-inline-menu-list></autofill-inline-menu-list>`;
autofillInlineMenuList = document.querySelector("autofill-inline-menu-list");
jest.spyOn(globalThis.document, "createElement");
@@ -33,6 +39,9 @@ describe("AutofillInlineMenuList", () => {
afterEach(() => {
jest.clearAllMocks();
events.forEach(({ eventName, callback }) => {
globalThis.removeEventListener(eventName, callback);
});
});
describe("initAutofillInlineMenuList", () => {