git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on feature/macos-ios-support help sign in
13 lines 455 B history raw
1import { describe, it, expect, vi } from "vitest";
2import { alertImpl } from "../src/Yoga/React/Native/Alert.js";
4describe("Alert FFI", () => {
5 it("alertImpl calls without throwing", () => {
6 expect(() => alertImpl("Title", "Message", [])).not.toThrow();
7 });
9 it("alertImpl passes buttons through", () => {
10 const onPress = () => {};
11 expect(() => alertImpl("T", "M", [{ text: "OK", onPress, style: "default" }])).not.toThrow();
12 });
13});