mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-12 15:20:13 +00:00
style: apply oxfmt baseline formatting across all source files (#25)
## Summary - Run `oxfmt .` across the entire codebase to establish formatted baseline - 299 files changed — mechanical formatting only, no logic changes - Double quotes, semicolons, 2-space indent, trailing commas, 100 print width Part 3/4 of [VA-851](https://linear.app/heygen/issue/VA-851/pre-migration-configure-eslint-prettier-and-conventional-commits) ## Test plan - [x] `pnpm format:check` — all 426 files pass - [x] `pnpm -r typecheck` — all packages pass - [x] `pnpm build` — all packages build - [x] All 348 tests pass
This commit is contained in:
@@ -86,18 +86,22 @@ describe("installRuntimeControlBridge", () => {
|
||||
it("ignores messages from wrong source", () => {
|
||||
const deps = createMockDeps();
|
||||
const handler = installRuntimeControlBridge(deps);
|
||||
handler(new MessageEvent("message", {
|
||||
data: { source: "other", type: "control", action: "play" },
|
||||
}));
|
||||
handler(
|
||||
new MessageEvent("message", {
|
||||
data: { source: "other", type: "control", action: "play" },
|
||||
}),
|
||||
);
|
||||
expect(deps.onPlay).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it("ignores messages with wrong type", () => {
|
||||
const deps = createMockDeps();
|
||||
const handler = installRuntimeControlBridge(deps);
|
||||
handler(new MessageEvent("message", {
|
||||
data: { source: "hf-parent", type: "state", action: "play" },
|
||||
}));
|
||||
handler(
|
||||
new MessageEvent("message", {
|
||||
data: { source: "hf-parent", type: "state", action: "play" },
|
||||
}),
|
||||
);
|
||||
expect(deps.onPlay).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -112,7 +116,7 @@ describe("installRuntimeControlBridge", () => {
|
||||
const deps = createMockDeps();
|
||||
const handler = installRuntimeControlBridge(deps);
|
||||
expect(() =>
|
||||
handler(makeControlMessage("flash-elements", { selectors: [".test"], duration: 500 }))
|
||||
handler(makeControlMessage("flash-elements", { selectors: [".test"], duration: 500 })),
|
||||
).not.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user