mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-25 22:37:18 +10:00
Update tests
This commit is contained in:
parent
3a88c0f386
commit
efd7ac1a68
25 changed files with 103 additions and 100 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`BookingDateRangeFilter matches plain snapshot 1`] = `
|
||||
<InjectIntl(FilterPlainComponent)
|
||||
<injectIntl(FilterPlainComponent)
|
||||
className={null}
|
||||
contentPlacementOffset={-14}
|
||||
id="BookingDateRangeFilter.plain"
|
||||
|
|
@ -23,11 +23,11 @@ exports[`BookingDateRangeFilter matches plain snapshot 1`] = `
|
|||
name="dates"
|
||||
rootClassName={null}
|
||||
/>
|
||||
</InjectIntl(FilterPlainComponent)>
|
||||
</injectIntl(FilterPlainComponent)>
|
||||
`;
|
||||
|
||||
exports[`BookingDateRangeFilter matches popup snapshot 1`] = `
|
||||
<InjectIntl(FilterPopup)
|
||||
<injectIntl(FilterPopup)
|
||||
className={null}
|
||||
contentPlacementOffset={-14}
|
||||
id="BookingDateRangeFilter.popup"
|
||||
|
|
@ -50,5 +50,5 @@ exports[`BookingDateRangeFilter matches popup snapshot 1`] = `
|
|||
name="dates"
|
||||
rootClassName={null}
|
||||
/>
|
||||
</InjectIntl(FilterPopup)>
|
||||
</injectIntl(FilterPopup)>
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ exports[`TransactionPanel - Order accepted matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -83,7 +83,7 @@ exports[`TransactionPanel - Order accepted matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -708,7 +708,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -727,7 +727,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -799,7 +799,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -841,7 +841,7 @@ exports[`TransactionPanel - Order autodeclined matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -1464,7 +1464,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -1483,7 +1483,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -1555,7 +1555,7 @@ exports[`TransactionPanel - Order canceled matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -1597,7 +1597,7 @@ exports[`TransactionPanel - Order canceled matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -2222,7 +2222,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -2241,7 +2241,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -2313,7 +2313,7 @@ exports[`TransactionPanel - Order declined matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -2355,7 +2355,7 @@ exports[`TransactionPanel - Order declined matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -2978,7 +2978,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -2997,7 +2997,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -3069,7 +3069,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -3111,7 +3111,7 @@ exports[`TransactionPanel - Order delivered matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -3751,7 +3751,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -3770,7 +3770,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -3842,7 +3842,7 @@ exports[`TransactionPanel - Order enquired matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -3884,7 +3884,7 @@ exports[`TransactionPanel - Order enquired matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -4506,7 +4506,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -4525,7 +4525,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -4597,7 +4597,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -4639,7 +4639,7 @@ exports[`TransactionPanel - Order preauthorized matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -5262,7 +5262,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -5281,7 +5281,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -5353,7 +5353,7 @@ exports[`TransactionPanel - Sale accepted matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -5395,7 +5395,7 @@ exports[`TransactionPanel - Sale accepted matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -6020,7 +6020,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -6039,7 +6039,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -6111,7 +6111,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -6153,7 +6153,7 @@ exports[`TransactionPanel - Sale autodeclined matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -6776,7 +6776,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -6795,7 +6795,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -6867,7 +6867,7 @@ exports[`TransactionPanel - Sale canceled matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -6909,7 +6909,7 @@ exports[`TransactionPanel - Sale canceled matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -7534,7 +7534,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -7553,7 +7553,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -7625,7 +7625,7 @@ exports[`TransactionPanel - Sale declined matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -7667,7 +7667,7 @@ exports[`TransactionPanel - Sale declined matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -8290,7 +8290,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -8309,7 +8309,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -8381,7 +8381,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -8423,7 +8423,7 @@ exports[`TransactionPanel - Sale delivered matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -9048,7 +9048,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -9067,7 +9067,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -9139,7 +9139,7 @@ exports[`TransactionPanel - Sale enquired matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -9181,7 +9181,7 @@ exports[`TransactionPanel - Sale enquired matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -9803,7 +9803,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -9822,7 +9822,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -9894,7 +9894,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -9936,7 +9936,7 @@ exports[`TransactionPanel - Sale preauthorized matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -10559,7 +10559,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ReviewModal)
|
||||
<injectIntl(ReviewModal)
|
||||
id="ReviewOrderModal"
|
||||
isOpen={false}
|
||||
onCloseModal={[Function]}
|
||||
|
|
@ -10578,7 +10578,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ exports[`AuthenticationPageComponent matches snapshot 1`] = `
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
<InjectIntl(ModalComponent)
|
||||
<injectIntl(ModalComponent)
|
||||
id="AuthenticationPage.tos"
|
||||
isOpen={false}
|
||||
onClose={[Function]}
|
||||
|
|
@ -99,13 +99,13 @@ exports[`AuthenticationPageComponent matches snapshot 1`] = `
|
|||
rootClassName={null}
|
||||
/>
|
||||
</div>
|
||||
</InjectIntl(ModalComponent)>
|
||||
</injectIntl(ModalComponent)>
|
||||
</LayoutWrapperMain>
|
||||
<LayoutWrapperFooter
|
||||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ exports[`CheckoutPage matches snapshot 1`] = `
|
|||
</h3>
|
||||
</div>
|
||||
<section>
|
||||
<InjectIntl(StripePaymentForm)
|
||||
<injectIntl(StripePaymentForm)
|
||||
authorDisplayName="author display name"
|
||||
confirmPaymentError={null}
|
||||
defaultPaymentMethod={null}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ exports[`ContactDetailsPage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSideNavigation>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ exports[`EditListingPageComponent matches snapshot 1`] = `
|
|||
title="EditListingPage.titleCreateListing"
|
||||
>
|
||||
<withRouter(Connect(TopbarContainerComponent)) />
|
||||
<withViewport(InjectIntl(EditListingWizard))
|
||||
<withViewport(injectIntl(EditListingWizard))
|
||||
availability={
|
||||
Object {
|
||||
"calendar": undefined,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|||
import { compose } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
|
||||
import { propTypes } from '../../util/types';
|
||||
import { verify } from '../../ducks/EmailVerification.duck';
|
||||
import { isScrollingDisabled } from '../../ducks/UI.duck';
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ exports[`InboxPage matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -239,7 +239,7 @@ exports[`InboxPage matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -387,7 +387,7 @@ exports[`InboxPage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSideNavigation>
|
||||
</Page>
|
||||
|
|
@ -538,7 +538,7 @@ exports[`InboxPage matches snapshot 3`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -691,7 +691,7 @@ exports[`InboxPage matches snapshot 3`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
@ -839,7 +839,7 @@ exports[`InboxPage matches snapshot 3`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSideNavigation>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ exports[`LandingPage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ exports[`ListingPage matches snapshot 1`] = `
|
|||
title="listing1 title"
|
||||
/>
|
||||
</div>
|
||||
<withRouter(InjectIntl(BookingPanel))
|
||||
<withRouter(injectIntl(BookingPanel))
|
||||
authorDisplayName="user-1 display name"
|
||||
fetchTimeSlotsError={null}
|
||||
isOwnListing={false}
|
||||
|
|
@ -352,7 +352,7 @@ exports[`ListingPage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ exports[`ContactDetailsPage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ exports[`NotFoundPageComponent matches snapshot 1`] = `
|
|||
values={Object {}}
|
||||
/>
|
||||
</p>
|
||||
<InjectIntl(LocationSearchFormComponent)
|
||||
<injectIntl(LocationSearchFormComponent)
|
||||
onSubmit={[Function]}
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -46,7 +46,7 @@ exports[`NotFoundPageComponent matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ exports[`PasswordChangePage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSideNavigation>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ exports[`ContactDetailsPage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ exports[`PayoutPreferencesPage matches snapshot with Stripe connected 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSideNavigation>
|
||||
</Page>
|
||||
|
|
@ -98,7 +98,7 @@ exports[`PayoutPreferencesPage matches snapshot with Stripe not connected 1`] =
|
|||
values={Object {}}
|
||||
/>
|
||||
</p>
|
||||
<InjectIntl(PayoutDetailsFormComponent)
|
||||
<injectIntl(PayoutDetailsFormComponent)
|
||||
createStripeAccountError={null}
|
||||
currentUserId={
|
||||
UUID {
|
||||
|
|
@ -119,7 +119,7 @@ exports[`PayoutPreferencesPage matches snapshot with Stripe not connected 1`] =
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSideNavigation>
|
||||
</Page>
|
||||
|
|
@ -168,7 +168,7 @@ exports[`PayoutPreferencesPage matches snapshot with details submitted 1`] = `
|
|||
values={Object {}}
|
||||
/>
|
||||
</p>
|
||||
<InjectIntl(PayoutDetailsFormComponent)
|
||||
<injectIntl(PayoutDetailsFormComponent)
|
||||
createStripeAccountError={null}
|
||||
currentUserId={
|
||||
UUID {
|
||||
|
|
@ -189,7 +189,7 @@ exports[`PayoutPreferencesPage matches snapshot with details submitted 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSideNavigation>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ exports[`ProfilePage matches snapshot 1`] = `
|
|||
]
|
||||
}
|
||||
/>
|
||||
<InjectIntl(ReviewsComponent)
|
||||
<injectIntl(ReviewsComponent)
|
||||
reviews={Array []}
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -128,7 +128,7 @@ exports[`ProfilePage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSideNavigation>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ exports[`ContactDetailsPage matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ exports[`TransactionPage - Order matches snapshot 1`] = `
|
|||
rootClassName={null}
|
||||
>
|
||||
<div>
|
||||
<InjectIntl(TransactionPanelComponent)
|
||||
<injectIntl(TransactionPanelComponent)
|
||||
acceptInProgress={false}
|
||||
acceptSaleError={null}
|
||||
className=""
|
||||
|
|
@ -218,7 +218,7 @@ exports[`TransactionPage - Order matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
@ -244,7 +244,7 @@ exports[`TransactionPage - Sale matches snapshot 1`] = `
|
|||
rootClassName={null}
|
||||
>
|
||||
<div>
|
||||
<InjectIntl(TransactionPanelComponent)
|
||||
<injectIntl(TransactionPanelComponent)
|
||||
acceptInProgress={false}
|
||||
acceptSaleError={null}
|
||||
className=""
|
||||
|
|
@ -441,7 +441,7 @@ exports[`TransactionPage - Sale matches snapshot 1`] = `
|
|||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
<injectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ exports[`BookingDatesForm matches snapshot without selected dates 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ exports[`EditListingAvailabilityForm matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ exports[`EditListingLocationForm matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ exports[`EditListingPhotosForm matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ exports[`EditListingPoliciesForm matches snapshot 1`] = `
|
|||
"formatMessage": [Function],
|
||||
"formatNumber": [Function],
|
||||
"formatPlural": [Function],
|
||||
"formatRelative": [Function],
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"now": [Function],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -166,7 +166,10 @@ export const formatDate = (intl, todayString, d) => {
|
|||
if (!paramsValid) {
|
||||
throw new Error(`Invalid params for formatDate: (${intl}, ${todayString}, ${d})`);
|
||||
}
|
||||
const now = moment(intl.now());
|
||||
|
||||
// By default we can use moment() directly but in tests we need to use a specific dates.
|
||||
// fakeIntl used in tests contains now() function wich returns predefined date
|
||||
const now = intl.now ? moment(intl.now()) : moment();
|
||||
const formattedTime = intl.formatTime(d);
|
||||
let formattedDate;
|
||||
|
||||
|
|
|
|||
|
|
@ -294,7 +294,7 @@ export const fakeIntl = {
|
|||
formatMessage: msg => msg.id,
|
||||
formatNumber: d => d,
|
||||
formatPlural: d => d,
|
||||
formatRelative: d => d,
|
||||
formatRelativeTime: d => d,
|
||||
formatTime: d => `${pad(d.getUTCHours())}:${pad(d.getUTCMinutes())}`,
|
||||
now: () => Date.UTC(2017, 10, 23, 12, 59),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue