Files
pikasTech-HWLAB/web/hwlab-cloud-web/src/hooks/useProviderProfileOptions.test.ts
T
2026-06-08 04:58:29 +08:00

14 lines
563 B
TypeScript

import assert from "node:assert/strict";
import fs from "node:fs";
import path from "node:path";
import { fileURLToPath } from "node:url";
import { test } from "bun:test";
const sourcePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "useProviderProfileOptions.ts");
test("provider profile options use the public catalog instead of admin management routes", () => {
const source = fs.readFileSync(sourcePath, "utf8");
assert.match(source, /api\.providerProfileCatalog\(\)/u);
assert.doesNotMatch(source, /api\.providerProfiles\(\)/u);
});