Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,19 @@
|
||||
// @vitest-environment node
|
||||
import { readFileSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const source = readFileSync(path.join(path.dirname(fileURLToPath(import.meta.url)), "EntityHelper.ts"), "utf8");
|
||||
|
||||
describe("EntityHelper admin routes", () => {
|
||||
it("does not emit tenant-only grouped entity routes on the admin host", () => {
|
||||
expect(source).toContain("appPath({ tenantSlug: params.tenant, path: `g/${entityInGroup.slug}/${entity.slug}`");
|
||||
expect(source).not.toContain("adminPath(`g/${entityInGroup.slug}/${entity.slug}`");
|
||||
expect(source).toContain("adminPath(`entities/${entity.slug}/no-code/${entity.slug}`");
|
||||
});
|
||||
|
||||
it("does not emit nonexistent portal entity row routes", () => {
|
||||
expect(source).not.toContain("portals/${params.portal}/${entity.slug}/rows");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user