Skip to content

Commit 7d4427e

Browse files
authored
chore(router): Fix spelling/grammar and type import in tests (#11906)
1 parent a39e340 commit 7d4427e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/router/src/__tests__/route-validators.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('isValidRoute', () => {
4242
)
4343
})
4444

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

@@ -51,7 +51,7 @@ describe('isValidRoute', () => {
5151
)
5252
})
5353

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

packages/router/src/__tests__/router.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313

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

16+
import type { GeneratedRoutesMap } from '../analyzeRoutes.js'
1617
import {
1718
back,
1819
routes as generatedRoutes,
@@ -26,7 +27,6 @@ import {
2627
} from '../index.js'
2728
import { useParams } from '../params.js'
2829
import { Set } from '../Set.js'
29-
import type { GeneratedRoutesMap } from '../util.js'
3030

3131
type UnknownAuthContextInterface = AuthContextInterface<
3232
unknown,

0 commit comments

Comments
 (0)