Something went wrong. Try again.
The Social Wire — an ATProto publication reader. thesocialwire.app
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930import { describe, expect, it } from "bun:test";
import { shouldShowArticleListColumn } from "@/lib/readerColumnVisibility";
describe("readerColumnVisibility", () => { it("follows the user preference in portrait tablet layouts", () => { expect( shouldShowArticleListColumn({ isTabletPortrait: true, isOpenInTabletPortrait: false, }) ).toBe(false); expect( shouldShowArticleListColumn({ isTabletPortrait: true, isOpenInTabletPortrait: true, }) ).toBe(true); });
it("keeps the article list visible outside portrait tablet layouts", () => { expect( shouldShowArticleListColumn({ isTabletPortrait: false, isOpenInTabletPortrait: false, }) ).toBe(true); });});