14 lines
460 B
TypeScript
14 lines
460 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import robots from "./robots";
|
|
|
|
describe("robots", () => {
|
|
it("marks the canonical Housekeeping namespace as private", () => {
|
|
const result = robots();
|
|
const rules = Array.isArray(result.rules) ? result.rules : [result.rules];
|
|
const disallow = rules.flatMap((rule) => rule.disallow ?? []);
|
|
|
|
expect(disallow).toContain("/ase-next/");
|
|
expect(disallow).not.toContain(["/", "ase", "/"].join(""));
|
|
});
|
|
});
|