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:
@@ -8,7 +8,7 @@ function createMockPostMessage() {
|
||||
describe("createPickerModule", () => {
|
||||
afterEach(() => {
|
||||
document.body.innerHTML = "";
|
||||
document.head.querySelectorAll("style").forEach(s => s.remove());
|
||||
document.head.querySelectorAll("style").forEach((s) => s.remove());
|
||||
document.body.classList.remove("__hf-pick-active");
|
||||
});
|
||||
|
||||
@@ -33,15 +33,15 @@ describe("createPickerModule", () => {
|
||||
const picker = createPickerModule({ postMessage: createMockPostMessage() });
|
||||
picker.enablePickMode();
|
||||
const styles = document.head.querySelectorAll("style");
|
||||
const hasPickStyle = Array.from(styles).some(s =>
|
||||
s.textContent?.includes("__hf-pick-highlight")
|
||||
const hasPickStyle = Array.from(styles).some((s) =>
|
||||
s.textContent?.includes("__hf-pick-highlight"),
|
||||
);
|
||||
expect(hasPickStyle).toBe(true);
|
||||
|
||||
picker.disablePickMode();
|
||||
const stylesAfter = document.head.querySelectorAll("style");
|
||||
const hasPickStyleAfter = Array.from(stylesAfter).some(s =>
|
||||
s.textContent?.includes("__hf-pick-highlight")
|
||||
const hasPickStyleAfter = Array.from(stylesAfter).some((s) =>
|
||||
s.textContent?.includes("__hf-pick-highlight"),
|
||||
);
|
||||
expect(hasPickStyleAfter).toBe(false);
|
||||
});
|
||||
@@ -137,7 +137,7 @@ describe("createPickerModule", () => {
|
||||
expect.objectContaining({
|
||||
source: "hf-preview",
|
||||
type: "pick-mode-cancelled",
|
||||
})
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user