Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
import { describe, expect, it } from "vitest";
import { cursorStyleOrder, selectedCursorStyle } from "./cursor-style";
describe("cursor style selection", () => {
it("keeps Default distinct from an explicit OS appearance", () => {
expect(selectedCursorStyle("auto")).toBe("auto");
expect(selectedCursorStyle("pointer")).toBe("auto");
for (const style of ["macos", "tahoe", "windows", "circle"] as const) {
expect(selectedCursorStyle(style)).toBe(style);
}
});
it("offers Default first and every appearance on each platform", () => {
for (const platform of ["macos", "windows", "linux"]) {
const styles = cursorStyleOrder(platform);
expect(styles[0]).toBe("auto");
expect(new Set(styles)).toEqual(
new Set(["auto", "macos", "tahoe", "windows", "circle"]),
);
}
});
});