Switch to double quotes and reformat codebase with Biome
This commit is contained in:
@@ -29,7 +29,9 @@ describe("client-id", () => {
|
||||
it("creates and persists a client id when missing", async () => {
|
||||
asyncStorageMock.getItem.mockResolvedValue(null);
|
||||
asyncStorageMock.setItem.mockResolvedValue();
|
||||
vi.spyOn(globalThis.crypto, "randomUUID").mockReturnValue("12345678-1234-1234-1234-1234567890ab");
|
||||
vi.spyOn(globalThis.crypto, "randomUUID").mockReturnValue(
|
||||
"12345678-1234-1234-1234-1234567890ab",
|
||||
);
|
||||
|
||||
const mod = await import("./client-id");
|
||||
const key = await mod.getOrCreateClientId();
|
||||
@@ -37,7 +39,7 @@ describe("client-id", () => {
|
||||
expect(key).toBe("cid_123456781234123412341234567890ab");
|
||||
expect(asyncStorageMock.setItem).toHaveBeenCalledWith(
|
||||
"@paseo:client-id-v1",
|
||||
"cid_123456781234123412341234567890ab"
|
||||
"cid_123456781234123412341234567890ab",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user