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");
9 it("allowRTL is a curried effect", () => {
10 expect(() => allowRTL(true)()).not.toThrow();
13 it("forceRTL is a curried effect", () => {
14 expect(() => forceRTL(false)()).not.toThrow();
17 it("swapLeftAndRightInRTL is a curried effect", () => {
18 expect(() => swapLeftAndRightInRTL(true)()).not.toThrow();
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