You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: __tests__/actions/__snapshots__/api.js.snap
+42-2Lines changed: 42 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,48 @@
1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
-
exports[`actions > api should make a query to OTP 1`] =`"/api/plan?arriveBy=false&fromPlace=12%2C34&showIntermediateStops=true&toPlace=34%2C12"`;
3
+
exports[`actions > api > planTrip should make a query to OTP with customOtpQueryBuilder in state config 1`] =`"/api/plan?from=here&to=there"`;
4
4
5
-
exports[`actions > api should make a query to OTP 2`] =`
5
+
exports[`actions > api > planTrip should make a query to OTP with customOtpQueryBuilder in state config 2`] =`
6
+
Array [
7
+
Array [
8
+
Object {
9
+
"type": "PLAN_REQUEST",
10
+
},
11
+
],
12
+
Array [
13
+
Object {
14
+
"payload": Object {
15
+
"fake": "response",
16
+
},
17
+
"type": "PLAN_RESPONSE",
18
+
},
19
+
],
20
+
]
21
+
`;
22
+
23
+
exports[`actions > api > planTrip should make a query to OTP with customOtpQueryBuilder sent to action 1`] =`"/api/plan?from=here&to=there"`;
24
+
25
+
exports[`actions > api > planTrip should make a query to OTP with customOtpQueryBuilder sent to action 2`] =`
26
+
Array [
27
+
Array [
28
+
Object {
29
+
"type": "PLAN_REQUEST",
30
+
},
31
+
],
32
+
Array [
33
+
Object {
34
+
"payload": Object {
35
+
"fake": "response",
36
+
},
37
+
"type": "PLAN_RESPONSE",
38
+
},
39
+
],
40
+
]
41
+
`;
42
+
43
+
exports[`actions > api > planTrip should make a query to OTP with default settings 1`] =`"/api/plan?arriveBy=false&fromPlace=12%2C34&showIntermediateStops=true&toPlace=34%2C12"`;
44
+
45
+
exports[`actions > api > planTrip should make a query to OTP with default settings 2`] =`
0 commit comments