1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

feat: add test case for web

This commit is contained in:
Andreas Coroiu
2025-11-10 15:01:02 +01:00
parent 5df7bc42a0
commit a94e19d317

View File

@@ -28,6 +28,15 @@ describe("IpcSessionRepository", () => {
expect(result).toEqual(session);
});
it("saves and retrieves a web session", async () => {
const session = { some: "data" };
await repository.save({ Web: { id: 9001 } }, session);
const result = await repository.get({ Web: { id: 9001 } });
expect(result).toEqual(session);
});
it("removes a session", async () => {
const session = { some: "data" };
await repository.save("BrowserBackground", session);