mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
Gateway UI: allowlist device key fixtures
This commit is contained in:
@@ -7,8 +7,8 @@ const loadOrCreateDeviceIdentityMock = vi.hoisted(() =>
|
|||||||
vi.fn(
|
vi.fn(
|
||||||
async (): Promise<DeviceIdentity> => ({
|
async (): Promise<DeviceIdentity> => ({
|
||||||
deviceId: "device-1",
|
deviceId: "device-1",
|
||||||
privateKey: "private-key",
|
privateKey: "private-key", // pragma: allowlist secret
|
||||||
publicKey: "public-key",
|
publicKey: "public-key", // pragma: allowlist secret
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -114,8 +114,8 @@ describe("GatewayBrowserClient", () => {
|
|||||||
signDevicePayloadMock.mockClear();
|
signDevicePayloadMock.mockClear();
|
||||||
loadOrCreateDeviceIdentityMock.mockResolvedValue({
|
loadOrCreateDeviceIdentityMock.mockResolvedValue({
|
||||||
deviceId: "device-1",
|
deviceId: "device-1",
|
||||||
privateKey: "private-key",
|
privateKey: "private-key", // pragma: allowlist secret
|
||||||
publicKey: "public-key",
|
publicKey: "public-key", // pragma: allowlist secret
|
||||||
});
|
});
|
||||||
|
|
||||||
const localStorage = createStorageMock();
|
const localStorage = createStorageMock();
|
||||||
|
|||||||
Reference in New Issue
Block a user