git.iko.soy/rowtype-yoga/purescript-yoga-react-native
on v0.2.0 help sign in
20 lines 612 B history raw
1import { describe, it, expect } from "vitest";
2import { isRTL, allowRTL, forceRTL, swapLeftAndRightInRTL } from "../src/Yoga/React/Native/I18nManager.js";
4describe("I18nManager FFI", () => {
5 it("isRTL is a boolean", () => {
6 expect(typeof isRTL).toBe("boolean");
7 });
9 it("allowRTL is a curried effect", () => {
10 expect(() => allowRTL(true)()).not.toThrow();
11 });
13 it("forceRTL is a curried effect", () => {
14 expect(() => forceRTL(false)()).not.toThrow();
15 });
17 it("swapLeftAndRightInRTL is a curried effect", () => {
18 expect(() => swapLeftAndRightInRTL(true)()).not.toThrow();
19 });
20});