@@ -15,6 +15,7 @@ it('gets navigate action from state', () => {
15
15
{
16
16
name : 'qux' ,
17
17
params : { author : 'jane' } ,
18
+ path : '/foo/bar' ,
18
19
} ,
19
20
] ,
20
21
} ,
@@ -35,6 +36,7 @@ it('gets navigate action from state', () => {
35
36
author : 'jane' ,
36
37
} ,
37
38
screen : 'qux' ,
39
+ path : '/foo/bar' ,
38
40
initial : true ,
39
41
} ,
40
42
screen : 'bar' ,
@@ -51,6 +53,7 @@ it('gets navigate action from state for top-level screen', () => {
51
53
{
52
54
name : 'foo' ,
53
55
params : { answer : 42 } ,
56
+ path : '/foo/bar' ,
54
57
} ,
55
58
] ,
56
59
} ;
@@ -59,6 +62,7 @@ it('gets navigate action from state for top-level screen', () => {
59
62
payload : {
60
63
name : 'foo' ,
61
64
params : { answer : 42 } ,
65
+ path : '/foo/bar' ,
62
66
} ,
63
67
type : 'NAVIGATE' ,
64
68
} ) ;
@@ -80,6 +84,7 @@ it('gets reset action from state with 1 route with key at root', () => {
80
84
key : 'test' ,
81
85
name : 'qux' ,
82
86
params : { author : 'jane' } ,
87
+ path : '/foo/bar' ,
83
88
} ,
84
89
] ,
85
90
} ,
@@ -102,7 +107,12 @@ it('gets reset action from state with 1 route with key at root', () => {
102
107
name : 'bar' ,
103
108
state : {
104
109
routes : [
105
- { key : 'test' , name : 'qux' , params : { author : 'jane' } } ,
110
+ {
111
+ key : 'test' ,
112
+ name : 'qux' ,
113
+ params : { author : 'jane' } ,
114
+ path : '/foo/bar' ,
115
+ } ,
106
116
] ,
107
117
} ,
108
118
} ,
@@ -125,6 +135,7 @@ it('gets reset action from state for top-level screen with 2 screens', () => {
125
135
{
126
136
name : 'bar' ,
127
137
params : { author : 'jane' } ,
138
+ path : '/foo/bar' ,
128
139
} ,
129
140
] ,
130
141
} ;
@@ -139,6 +150,7 @@ it('gets reset action from state for top-level screen with 2 screens', () => {
139
150
{
140
151
name : 'bar' ,
141
152
params : { author : 'jane' } ,
153
+ path : '/foo/bar' ,
142
154
} ,
143
155
] ,
144
156
} ,
@@ -197,6 +209,7 @@ it('gets reset action from state for top-level screen with 2 screens with config
197
209
name : 'bar' ,
198
210
key : 'test' ,
199
211
params : { author : 'jane' } ,
212
+ path : '/foo/bar' ,
200
213
} ,
201
214
] ,
202
215
} ;
@@ -219,6 +232,7 @@ it('gets reset action from state for top-level screen with 2 screens with config
219
232
name : 'bar' ,
220
233
key : 'test' ,
221
234
params : { author : 'jane' } ,
235
+ path : '/foo/bar' ,
222
236
} ,
223
237
] ,
224
238
} ,
@@ -236,6 +250,7 @@ it('gets navigate action from state for top-level screen with 2 screens with con
236
250
{
237
251
name : 'bar' ,
238
252
params : { author : 'jane' } ,
253
+ path : '/foo/bar' ,
239
254
} ,
240
255
] ,
241
256
} ;
@@ -251,6 +266,7 @@ it('gets navigate action from state for top-level screen with 2 screens with con
251
266
payload : {
252
267
name : 'bar' ,
253
268
params : { author : 'jane' } ,
269
+ path : '/foo/bar' ,
254
270
} ,
255
271
type : 'NAVIGATE' ,
256
272
} ) ;
@@ -267,6 +283,7 @@ it('gets navigate action from state for top-level screen with more than 2 screen
267
283
{
268
284
name : 'bar' ,
269
285
params : { author : 'jane' } ,
286
+ path : '/foo/bar' ,
270
287
} ,
271
288
{ name : 'baz' } ,
272
289
] ,
@@ -283,6 +300,7 @@ it('gets navigate action from state for top-level screen with more than 2 screen
283
300
payload : {
284
301
name : 'bar' ,
285
302
params : { author : 'jane' } ,
303
+ path : '/foo/bar' ,
286
304
} ,
287
305
type : 'NAVIGATE' ,
288
306
} ) ;
@@ -303,7 +321,7 @@ it('gets navigate action from state with 2 screens', () => {
303
321
name : 'qux' ,
304
322
params : { author : 'jane' } ,
305
323
} ,
306
- { name : 'quz' } ,
324
+ { name : 'quz' , path : '/foo/bar' } ,
307
325
] ,
308
326
} ,
309
327
} ,
@@ -328,7 +346,7 @@ it('gets navigate action from state with 2 screens', () => {
328
346
author : 'jane' ,
329
347
} ,
330
348
} ,
331
- { name : 'quz' } ,
349
+ { name : 'quz' , path : '/foo/bar' } ,
332
350
] ,
333
351
} ,
334
352
} ,
@@ -353,6 +371,7 @@ it('gets navigate action from state with 2 screens with lower index', () => {
353
371
{
354
372
name : 'qux' ,
355
373
params : { author : 'jane' } ,
374
+ path : '/foo/bar' ,
356
375
} ,
357
376
{ name : 'quz' } ,
358
377
] ,
@@ -376,6 +395,7 @@ it('gets navigate action from state with 2 screens with lower index', () => {
376
395
params : {
377
396
author : 'jane' ,
378
397
} ,
398
+ path : '/foo/bar' ,
379
399
} ,
380
400
} ,
381
401
} ,
@@ -450,6 +470,7 @@ it('gets navigate action from state with config', () => {
450
470
{
451
471
name : 'qux' ,
452
472
params : { author : 'jane' } ,
473
+ path : '/foo/bar' ,
453
474
} ,
454
475
] ,
455
476
} ,
@@ -483,6 +504,7 @@ it('gets navigate action from state with config', () => {
483
504
author : 'jane' ,
484
505
} ,
485
506
screen : 'qux' ,
507
+ path : '/foo/bar' ,
486
508
initial : true ,
487
509
} ,
488
510
screen : 'bar' ,
@@ -499,6 +521,7 @@ it('gets navigate action from state for top-level screen with config', () => {
499
521
{
500
522
name : 'foo' ,
501
523
params : { answer : 42 } ,
524
+ path : '/foo/bar' ,
502
525
} ,
503
526
] ,
504
527
} ;
@@ -519,6 +542,7 @@ it('gets navigate action from state for top-level screen with config', () => {
519
542
payload : {
520
543
name : 'foo' ,
521
544
params : { answer : 42 } ,
545
+ path : '/foo/bar' ,
522
546
} ,
523
547
type : 'NAVIGATE' ,
524
548
} ) ;
@@ -539,7 +563,7 @@ it('gets navigate action from state with 2 screens including initial route and w
539
563
name : 'qux' ,
540
564
params : { author : 'jane' } ,
541
565
} ,
542
- { name : 'quz' } ,
566
+ { name : 'quz' , path : '/foo/bar' } ,
543
567
] ,
544
568
} ,
545
569
} ,
@@ -571,6 +595,7 @@ it('gets navigate action from state with 2 screens including initial route and w
571
595
params : {
572
596
screen : 'quz' ,
573
597
initial : false ,
598
+ path : '/foo/bar' ,
574
599
} ,
575
600
} ,
576
601
} ,
@@ -593,7 +618,7 @@ it('gets navigate action from state with 2 screens without initial route and wit
593
618
name : 'qux' ,
594
619
params : { author : 'jane' } ,
595
620
} ,
596
- { name : 'quz' } ,
621
+ { name : 'quz' , path : '/foo/bar' } ,
597
622
] ,
598
623
} ,
599
624
} ,
@@ -631,7 +656,7 @@ it('gets navigate action from state with 2 screens without initial route and wit
631
656
author : 'jane' ,
632
657
} ,
633
658
} ,
634
- { name : 'quz' } ,
659
+ { name : 'quz' , path : '/foo/bar' } ,
635
660
] ,
636
661
} ,
637
662
} ,
@@ -856,6 +881,7 @@ it('gets navigate action from state with more than 2 screens with lower index',
856
881
{
857
882
name : 'qux' ,
858
883
params : { author : 'jane' } ,
884
+ path : '/foo/bar' ,
859
885
} ,
860
886
{ name : 'quz' } ,
861
887
] ,
@@ -889,6 +915,7 @@ it('gets navigate action from state with more than 2 screens with lower index',
889
915
params : {
890
916
screen : 'qux' ,
891
917
initial : false ,
918
+ path : '/foo/bar' ,
892
919
params : {
893
920
author : 'jane' ,
894
921
} ,
0 commit comments