git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on feature/macos-ios-support help sign in
14 lines 483 B history raw
1import { describe, it, expect } from "vitest";
2import { stringImpl, registerComponentImpl } from "../src/Yoga/React/Native.js";
4describe("Native FFI", () => {
5 it("stringImpl creates a Text element from a string", () => {
6 const el = stringImpl("hello");
7 expect(el).toBeDefined();
8 expect(el.props.children).toBe("hello");
9 });
11 it("registerComponentImpl does not throw", () => {
12 expect(() => registerComponentImpl("TestApp", () => null)).not.toThrow();
13 });
14});