Skip to content

Commit 5f2feae

Browse files
committed
docs(webapp): name the title tests after what they assert
1 parent a537f51 commit 5f2feae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/webapp/app/utils/pageTitle.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Route = { id: string; data?: unknown; meta?: MetaFunction };
1212
* match's array is what renders. It also only passes the matches visited *so far*, which is why
1313
* titles are declared per route rather than centrally.
1414
*/
15-
/** The URL params an environment-scoped page carries; the org scope is only used when they exist. */
15+
/** The URL params a page inside a project carries; the org scope is dropped when they are present. */
1616
const ENV_PARAMS = { organizationSlug: "acme", projectParam: "my-project", envParam: "prod" };
1717

1818
function renderTitle(
@@ -51,7 +51,7 @@ const orgRoute: Route = {
5151
};
5252

5353
describe("pageMeta", () => {
54-
it("adds the project and environment scope to an environment page", () => {
54+
it("titles a page inside a project without any scope", () => {
5555
const title = renderTitle([rootRoute, orgRoute, { id: "routes/runs", meta: pageMeta("Runs") }]);
5656

5757
expect(title).toBe("Runs | Trigger.dev");

0 commit comments

Comments
 (0)