| 1 | import { describe, expect, it } from "vite-plus/test"; |
| 2 | |
| 3 | import { supportsNativeLiquidGlass } from "./native-glass-capability"; |
| 4 | |
| 5 | describe("supportsNativeLiquidGlass", () => { |
| 6 | it("uses native liquid glass when iOS reports the capability", () => { |
| 7 | expect(supportsNativeLiquidGlass("ios", true)).toBe(true); |
| 8 | }); |
| 9 | |
| 10 | it("keeps pre-glass iOS on the solid fallback", () => { |
| 11 | expect(supportsNativeLiquidGlass("ios", false)).toBe(false); |
| 12 | }); |
| 13 | |
| 14 | it("does not enable iOS liquid-glass layout behavior on other platforms", () => { |
| 15 | expect(supportsNativeLiquidGlass("android", true)).toBe(false); |
| 16 | expect(supportsNativeLiquidGlass("web", true)).toBe(false); |
| 17 | }); |
| 18 | }); |