@@ -42,7 +42,7 @@ test('creates routes', () => {
4242 assert . equal ( routes , [
4343 {
4444 type : 'page' ,
45- key : '' ,
45+ id : '' ,
4646 segments : [ ] ,
4747 pattern : / ^ \/ $ / ,
4848 params : [ ] ,
@@ -54,7 +54,7 @@ test('creates routes', () => {
5454
5555 {
5656 type : 'page' ,
57- key : 'about' ,
57+ id : 'about' ,
5858 segments : [ { rest : false , dynamic : false , content : 'about' } ] ,
5959 pattern : / ^ \/ a b o u t \/ ? $ / ,
6060 params : [ ] ,
@@ -66,7 +66,7 @@ test('creates routes', () => {
6666
6767 {
6868 type : 'endpoint' ,
69- key : 'blog.json' ,
69+ id : 'blog.json' ,
7070 segments : [ { rest : false , dynamic : false , content : 'blog.json' } ] ,
7171 pattern : / ^ \/ b l o g \. j s o n $ / ,
7272 file : 'samples/basic/blog/index.json.js' ,
@@ -75,7 +75,7 @@ test('creates routes', () => {
7575
7676 {
7777 type : 'page' ,
78- key : 'blog' ,
78+ id : 'blog' ,
7979 segments : [ { rest : false , dynamic : false , content : 'blog' } ] ,
8080 pattern : / ^ \/ b l o g \/ ? $ / ,
8181 params : [ ] ,
@@ -87,7 +87,7 @@ test('creates routes', () => {
8787
8888 {
8989 type : 'endpoint' ,
90- key : 'blog/[slug].json' ,
90+ id : 'blog/[slug].json' ,
9191 segments : [
9292 { rest : false , dynamic : false , content : 'blog' } ,
9393 { rest : false , dynamic : true , content : '[slug].json' }
@@ -99,7 +99,7 @@ test('creates routes', () => {
9999
100100 {
101101 type : 'page' ,
102- key : 'blog/[slug]' ,
102+ id : 'blog/[slug]' ,
103103 segments : [
104104 { rest : false , dynamic : false , content : 'blog' } ,
105105 { rest : false , dynamic : true , content : '[slug]' }
@@ -128,7 +128,7 @@ test('creates routes with layout', () => {
128128 assert . equal ( routes , [
129129 {
130130 type : 'page' ,
131- key : '' ,
131+ id : '' ,
132132 segments : [ ] ,
133133 pattern : / ^ \/ $ / ,
134134 params : [ ] ,
@@ -140,7 +140,7 @@ test('creates routes with layout', () => {
140140
141141 {
142142 type : 'page' ,
143- key : 'foo' ,
143+ id : 'foo' ,
144144 segments : [ { rest : false , dynamic : false , content : 'foo' } ] ,
145145 pattern : / ^ \/ f o o \/ ? $ / ,
146146 params : [ ] ,
@@ -224,7 +224,7 @@ test('disallows rest parameters inside segments', () => {
224224 assert . equal ( routes , [
225225 {
226226 type : 'page' ,
227- key : 'prefix-[...rest]' ,
227+ id : 'prefix-[...rest]' ,
228228 segments : [
229229 {
230230 dynamic : true ,
@@ -241,7 +241,7 @@ test('disallows rest parameters inside segments', () => {
241241 } ,
242242 {
243243 type : 'endpoint' ,
244- key : '[...rest].json' ,
244+ id : '[...rest].json' ,
245245 segments : [
246246 {
247247 dynamic : true ,
@@ -308,7 +308,7 @@ test('allows multiple slugs', () => {
308308 [
309309 {
310310 type : 'endpoint' ,
311- key : '[file].[ext]' ,
311+ id : '[file].[ext]' ,
312312 segments : [ { dynamic : true , rest : false , content : '[file].[ext]' } ] ,
313313 pattern : / ^ \/ ( [ ^ / ] + ?) \. ( [ ^ / ] + ?) $ / ,
314314 file : 'samples/multiple-slugs/[file].[ext].js' ,
@@ -330,7 +330,7 @@ test('ignores things that look like lockfiles', () => {
330330 assert . equal ( routes , [
331331 {
332332 type : 'endpoint' ,
333- key : 'foo' ,
333+ id : 'foo' ,
334334 segments : [ { rest : false , dynamic : false , content : 'foo' } ] ,
335335 file : 'samples/lockfiles/foo.js' ,
336336 params : [ ] ,
@@ -354,7 +354,7 @@ test('works with custom extensions', () => {
354354 assert . equal ( routes , [
355355 {
356356 type : 'page' ,
357- key : '' ,
357+ id : '' ,
358358 segments : [ ] ,
359359 pattern : / ^ \/ $ / ,
360360 params : [ ] ,
@@ -366,7 +366,7 @@ test('works with custom extensions', () => {
366366
367367 {
368368 type : 'page' ,
369- key : 'about' ,
369+ id : 'about' ,
370370 segments : [ { rest : false , dynamic : false , content : 'about' } ] ,
371371 pattern : / ^ \/ a b o u t \/ ? $ / ,
372372 params : [ ] ,
@@ -378,7 +378,7 @@ test('works with custom extensions', () => {
378378
379379 {
380380 type : 'endpoint' ,
381- key : 'blog.json' ,
381+ id : 'blog.json' ,
382382 segments : [ { rest : false , dynamic : false , content : 'blog.json' } ] ,
383383 pattern : / ^ \/ b l o g \. j s o n $ / ,
384384 file : 'samples/custom-extension/blog/index.json.js' ,
@@ -387,7 +387,7 @@ test('works with custom extensions', () => {
387387
388388 {
389389 type : 'page' ,
390- key : 'blog' ,
390+ id : 'blog' ,
391391 segments : [ { rest : false , dynamic : false , content : 'blog' } ] ,
392392 pattern : / ^ \/ b l o g \/ ? $ / ,
393393 params : [ ] ,
@@ -399,7 +399,7 @@ test('works with custom extensions', () => {
399399
400400 {
401401 type : 'endpoint' ,
402- key : 'blog/[slug].json' ,
402+ id : 'blog/[slug].json' ,
403403 segments : [
404404 { rest : false , dynamic : false , content : 'blog' } ,
405405 { rest : false , dynamic : true , content : '[slug].json' }
@@ -411,7 +411,7 @@ test('works with custom extensions', () => {
411411
412412 {
413413 type : 'page' ,
414- key : 'blog/[slug]' ,
414+ id : 'blog/[slug]' ,
415415 segments : [
416416 { rest : false , dynamic : false , content : 'blog' } ,
417417 { rest : false , dynamic : true , content : '[slug]' }
@@ -449,7 +449,7 @@ test('includes nested error components', () => {
449449 assert . equal ( routes , [
450450 {
451451 type : 'page' ,
452- key : 'foo/bar/baz' ,
452+ id : 'foo/bar/baz' ,
453453 segments : [
454454 { rest : false , dynamic : false , content : 'foo' } ,
455455 { rest : false , dynamic : false , content : 'bar' } ,
@@ -482,7 +482,7 @@ test('resets layout', () => {
482482 assert . equal ( routes , [
483483 {
484484 type : 'page' ,
485- key : '' ,
485+ id : '' ,
486486 segments : [ ] ,
487487 pattern : / ^ \/ $ / ,
488488 params : [ ] ,
@@ -493,7 +493,7 @@ test('resets layout', () => {
493493 } ,
494494 {
495495 type : 'page' ,
496- key : 'foo' ,
496+ id : 'foo' ,
497497 segments : [ { rest : false , dynamic : false , content : 'foo' } ] ,
498498 pattern : / ^ \/ f o o \/ ? $ / ,
499499 params : [ ] ,
@@ -508,7 +508,7 @@ test('resets layout', () => {
508508 } ,
509509 {
510510 type : 'page' ,
511- key : 'foo/bar' ,
511+ id : 'foo/bar' ,
512512 segments : [
513513 { rest : false , dynamic : false , content : 'foo' } ,
514514 { rest : false , dynamic : false , content : 'bar' }
0 commit comments