|
| 1 | +const getExpectedTimeOfArrival = jest.fn(() => ({ |
| 2 | + times: [ |
| 3 | + { |
| 4 | + localized_display_name: 'first localized display name', |
| 5 | + estimate: 'first estimate', |
| 6 | + }, |
| 7 | + { |
| 8 | + localized_display_name: 'second localized display name', |
| 9 | + estimate: 'second estimate', |
| 10 | + }, |
| 11 | + ], |
| 12 | +})); |
| 13 | + |
| 14 | +const getPrices = jest.fn(() => ({ |
| 15 | + prices: [ |
| 16 | + { |
| 17 | + localized_display_name: 'first localized display name', |
| 18 | + distance: 'first distance', |
| 19 | + duration: 'first duration', |
| 20 | + high_estimate: 'first high estimate', |
| 21 | + low_estimate: 'first low estimate', |
| 22 | + currency_code: 'first currency code', |
| 23 | + surgeMultiplier: undefined, |
| 24 | + }, |
| 25 | + { |
| 26 | + localized_display_name: 'second localized display name', |
| 27 | + distance: 'second distance', |
| 28 | + duration: 'second duration', |
| 29 | + high_estimate: 'second high estimate', |
| 30 | + low_estimate: 'second low estimate', |
| 31 | + currency_code: 'second currency code', |
| 32 | + surgeMultiplier: 'surgeMultiplier', |
| 33 | + }, |
| 34 | + ], |
| 35 | +})); |
| 36 | + |
| 37 | +const constructor = jest.fn(() => ({ |
| 38 | + getExpectedTimeOfArrival, |
| 39 | + getPrices, |
| 40 | +})); |
| 41 | + |
| 42 | +const UberEstimatesClient = constructor; |
| 43 | + |
| 44 | +export default UberEstimatesClient; |
| 45 | +export { |
| 46 | + getExpectedTimeOfArrival, |
| 47 | + getPrices, |
| 48 | +}; |
0 commit comments