1import { describe, it, expect } from "vitest";
2import { getColorScheme, setColorScheme, useColorSchemeImpl } from "../src/Yoga/React/Native/Appearance.js";
4describe("Appearance FFI", () => {
5 it("getColorScheme returns a string", () => {
6 const result = getColorScheme();
7 expect(typeof result).toBe("string");
10 it("setColorScheme does not throw", () => {
11 expect(() => setColorScheme("dark")()).not.toThrow();
14 it("useColorSchemeImpl is a function", () => {
15 expect(typeof useColorSchemeImpl).toBe("function");
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list