Skip to content

Commit

Permalink
chore(router): Fix spelling/grammar and type import in tests (redwood…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Jan 17, 2025
1 parent a39e340 commit 7d4427e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/router/src/__tests__/route-validators.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('isValidRoute', () => {
)
})

it("throws if notFoundPage doesn't have page prop", () => {
it("throws if NotFoundPage doesn't have page prop", () => {
// @ts-expect-error Its ok mate, we're checking the validator
const RouteToCheck = <Route notfound name="bazinga" />

Expand All @@ -51,7 +51,7 @@ describe('isValidRoute', () => {
)
})

it("does not throws if notFoundPage doesn't have a path", () => {
it("does not throw if NotFoundPage doesn't have a path", () => {
// @ts-expect-error Its ok mate, we're checking the validator
const RouteToCheck = <Route name="bazinga" notfound page={() => <></>} />

Expand Down
2 changes: 1 addition & 1 deletion packages/router/src/__tests__/router.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {

import type { AuthContextInterface, UseAuth } from '@redwoodjs/auth'

import type { GeneratedRoutesMap } from '../analyzeRoutes.js'
import {
back,
routes as generatedRoutes,
Expand All @@ -26,7 +27,6 @@ import {
} from '../index.js'
import { useParams } from '../params.js'
import { Set } from '../Set.js'
import type { GeneratedRoutesMap } from '../util.js'

type UnknownAuthContextInterface = AuthContextInterface<
unknown,
Expand Down

0 comments on commit 7d4427e

Please sign in to comment.