The best way to control Claude Code, Codex and more from any computer or phone

main
ts 15 lines 522 Bytes
Raw
1 import { expect, it, vi } from "vite-plus/test";
2
3 import { flattenStyles } from "./util";
4
5 vi.mock("react-native", () => ({
6 I18nManager: { isRTL: false },
7 StyleSheet: {
8 flatten: (styles: ReadonlyArray<object | undefined>) => Object.assign({}, ...styles),
9 },
10 }));
11
12 it("encodes numeric bold weights as bold source-text runs", () => {
13 expect(flattenStyles({ fontWeight: 700 }, undefined).fontWeight).toBe("bold");
14 expect(flattenStyles({ fontWeight: "400" }, { fontWeight: "700" }).fontWeight).toBe("bold");
15 });