Skip to content

Commit dcb8c6d

Browse files
committed
test(scaffold): remove legacy route expectation
1 parent ee8bad0 commit dcb8c6d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

packages/astro/src/template-routes.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ describe("default Astro route configuration", () => {
4343
expect(listPage).toContain("siteConfig.blueprintConfig?.routeSlug");
4444
});
4545

46-
it("does not generate the legacy apps alias when apps is canonical", async () => {
47-
const aliasPage = await readFile(resolve(pagesDir, "apps/[recordSlug].astro"), "utf8");
46+
it("does not ship an Open Apps-specific legacy route", async () => {
47+
const aliasExists = await stat(resolve(pagesDir, "apps/[recordSlug].astro"))
48+
.then(() => true)
49+
.catch(() => false);
4850

49-
expect(aliasPage).toContain('if (indexSlug() === "apps")');
50-
expect(aliasPage).toContain("return []");
51+
expect(aliasExists).toBe(false);
5152
});
5253

5354
it("renders consumer-authored about Markdown through the default page", async () => {

0 commit comments

Comments
 (0)