feat: release 2.5.1
This commit is contained in:
@@ -68,4 +68,19 @@ describe("API sessions", () => {
|
||||
);
|
||||
expect(await readSession()).toBeUndefined();
|
||||
});
|
||||
|
||||
test("invalidates a memoized missing session after writing", async () => {
|
||||
await setupDirectories();
|
||||
expect(await readSession()).toBeUndefined();
|
||||
await writeSession(session, false);
|
||||
expect(await readSession()).toEqual(session);
|
||||
});
|
||||
|
||||
test("invalidates a memoized session after removal", async () => {
|
||||
await setupDirectories();
|
||||
await writeSession(session, false);
|
||||
expect(await readSession()).toEqual(session);
|
||||
await removeSessions();
|
||||
expect(await readSession()).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user