fix(housekeeping): canonicalize live cutover links
This commit is contained in:
1 parent
1f10e15c1c
commit
c841595458
15 files changed
+107
-30
No files matched your search
@@ -0,0 +1,13 @@
|
||||
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(""));
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user