fix(test): avoid base-to-string in nodes-media e2e logs
This commit is contained in:
parent
a11aecc3c1
commit
4de879a6c5
@ -20,6 +20,14 @@ const IOS_NODE = {
|
||||
connected: true,
|
||||
} as const;
|
||||
|
||||
function getFirstRuntimeLogLine(): string {
|
||||
const value = runtime.log.mock.calls[0]?.[0];
|
||||
if (typeof value !== "string") {
|
||||
throw new Error(`expected runtime.log first arg to be string, got ${typeof value}`);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function mockCameraGateway(
|
||||
command: "camera.snap" | "camera.clip",
|
||||
payload: Record<string, unknown>,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user