13 lines
509 B
TypeScript
13 lines
509 B
TypeScript
// @vitest-environment node
|
|
import { describe, expect, test } from "vitest";
|
|
import { readRepoFile } from "~/utils/testing/repoPaths";
|
|
|
|
describe("loadAppData tenant role lookup", () => {
|
|
test("calls getTenantUserType with user id before tenant id", () => {
|
|
const source = readRepoFile("apps/web/app/utils/data/.server/appData.ts");
|
|
|
|
expect(source).toContain("getTenantUserType(userInfo.userId, tenantId)");
|
|
expect(source).not.toContain("getTenantUserType(tenantId, userInfo.userId)");
|
|
});
|
|
});
|