Files
fusion/packages/dashboard/app/__tests__/App.boot-gate.test.tsx
2026-05-16 12:49:57 -07:00

11 lines
428 B
TypeScript

import { describe, expect, it } from "vitest";
import { shouldShowFirstEverBootLoader } from "../App";
describe("App boot gate", () => {
it("shows loader only when projects are loading and no projects are present", () => {
expect(shouldShowFirstEverBootLoader(true, 0)).toBe(true);
expect(shouldShowFirstEverBootLoader(false, 1)).toBe(false);
expect(shouldShowFirstEverBootLoader(true, 1)).toBe(false);
});
});