Skip to content

Commit 3f9c740

Browse files
committed
Update createRoutesFromChildren snapshots to reflect middleware
1 parent 14c7d4e commit 3f9c740

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/react-router/__tests__/createRoutesFromChildren-test.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe("creating routes from JSX", () => {
3232
"id": "0-0",
3333
"index": undefined,
3434
"loader": undefined,
35+
"middleware": undefined,
3536
"path": "home",
3637
"shouldRevalidate": undefined,
3738
},
@@ -47,6 +48,7 @@ describe("creating routes from JSX", () => {
4748
"id": "0-1",
4849
"index": undefined,
4950
"loader": undefined,
51+
"middleware": undefined,
5052
"path": "about",
5153
"shouldRevalidate": undefined,
5254
},
@@ -66,6 +68,7 @@ describe("creating routes from JSX", () => {
6668
"id": "0-2-0",
6769
"index": true,
6870
"loader": undefined,
71+
"middleware": undefined,
6972
"path": undefined,
7073
"shouldRevalidate": undefined,
7174
},
@@ -81,6 +84,7 @@ describe("creating routes from JSX", () => {
8184
"id": "0-2-1",
8285
"index": undefined,
8386
"loader": undefined,
87+
"middleware": undefined,
8488
"path": ":id",
8589
"shouldRevalidate": undefined,
8690
},
@@ -92,6 +96,7 @@ describe("creating routes from JSX", () => {
9296
"id": "0-2",
9397
"index": undefined,
9498
"loader": undefined,
99+
"middleware": undefined,
95100
"path": "users",
96101
"shouldRevalidate": undefined,
97102
},
@@ -103,6 +108,7 @@ describe("creating routes from JSX", () => {
103108
"id": "0",
104109
"index": undefined,
105110
"loader": undefined,
111+
"middleware": undefined,
106112
"path": "/",
107113
"shouldRevalidate": undefined,
108114
},
@@ -148,6 +154,7 @@ describe("creating routes from JSX", () => {
148154
"id": "0-0",
149155
"index": undefined,
150156
"loader": [Function],
157+
"middleware": undefined,
151158
"path": "home",
152159
"shouldRevalidate": [Function],
153160
},
@@ -167,6 +174,7 @@ describe("creating routes from JSX", () => {
167174
"id": "0-1-0",
168175
"index": true,
169176
"loader": undefined,
177+
"middleware": undefined,
170178
"path": undefined,
171179
"shouldRevalidate": undefined,
172180
},
@@ -178,6 +186,7 @@ describe("creating routes from JSX", () => {
178186
"id": "0-1",
179187
"index": undefined,
180188
"loader": undefined,
189+
"middleware": undefined,
181190
"path": "users",
182191
"shouldRevalidate": undefined,
183192
},
@@ -191,6 +200,7 @@ describe("creating routes from JSX", () => {
191200
"id": "0",
192201
"index": undefined,
193202
"loader": undefined,
203+
"middleware": undefined,
194204
"path": "/",
195205
"shouldRevalidate": undefined,
196206
},

0 commit comments

Comments
 (0)