|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`<FormattedMessage> should work with mount enzyme 1`] = ` |
| 4 | +<span> |
| 5 | + <injectIntl(FormattedMessage) |
| 6 | + id="foo" |
| 7 | + > |
| 8 | + <FormattedMessage |
| 9 | + id="foo" |
| 10 | + intl={ |
| 11 | + Object { |
| 12 | + "defaultFormats": Object {}, |
| 13 | + "defaultLocale": "en", |
| 14 | + "formatDate": [Function], |
| 15 | + "formatHTMLMessage": [Function], |
| 16 | + "formatMessage": [Function], |
| 17 | + "formatNumber": [Function], |
| 18 | + "formatPlural": [Function], |
| 19 | + "formatRelativeTime": [Function], |
| 20 | + "formatTime": [Function], |
| 21 | + "formats": Object {}, |
| 22 | + "formatters": Object { |
| 23 | + "getDateTimeFormat": [Function], |
| 24 | + "getMessageFormat": [Function], |
| 25 | + "getNumberFormat": [Function], |
| 26 | + "getPluralRules": [Function], |
| 27 | + "getRelativeTimeFormat": [Function], |
| 28 | + }, |
| 29 | + "locale": "en", |
| 30 | + "messages": Object { |
| 31 | + "foo": "hello foo", |
| 32 | + }, |
| 33 | + "onError": [Function], |
| 34 | + "textComponent": Symbol(react.fragment), |
| 35 | + "timeZone": undefined, |
| 36 | + } |
| 37 | + } |
| 38 | + values={Object {}} |
| 39 | + > |
| 40 | + hello foo |
| 41 | + </FormattedMessage> |
| 42 | + </injectIntl(FormattedMessage)> |
| 43 | +</span> |
| 44 | +`; |
| 45 | +
|
| 46 | +exports[`<FormattedMessage> should work with shallow enzyme 1`] = ` |
| 47 | +<ContextConsumer> |
| 48 | + <Component /> |
| 49 | +</ContextConsumer> |
| 50 | +`; |
| 51 | +
|
| 52 | +exports[`<FormattedMessage> should work with shallow enzyme 2`] = ` |
| 53 | +<FormattedMessage |
| 54 | + id="foo" |
| 55 | + intl={ |
| 56 | + Object { |
| 57 | + "defaultFormats": Object {}, |
| 58 | + "defaultLocale": "en", |
| 59 | + "formatDate": [Function], |
| 60 | + "formatHTMLMessage": [Function], |
| 61 | + "formatMessage": [Function], |
| 62 | + "formatNumber": [Function], |
| 63 | + "formatPlural": [Function], |
| 64 | + "formatRelativeTime": [Function], |
| 65 | + "formatTime": [Function], |
| 66 | + "formats": Object {}, |
| 67 | + "formatters": Object { |
| 68 | + "getDateTimeFormat": [Function], |
| 69 | + "getMessageFormat": [Function], |
| 70 | + "getNumberFormat": [Function], |
| 71 | + "getPluralRules": [Function], |
| 72 | + "getRelativeTimeFormat": [Function], |
| 73 | + }, |
| 74 | + "locale": "en", |
| 75 | + "messages": Object { |
| 76 | + "foo": "hello foo", |
| 77 | + }, |
| 78 | + "onError": [Function], |
| 79 | + "textComponent": Symbol(react.fragment), |
| 80 | + "timeZone": undefined, |
| 81 | + } |
| 82 | + } |
| 83 | + values={Object {}} |
| 84 | +/> |
| 85 | +`; |
| 86 | +
|
| 87 | +exports[`<FormattedMessage> should work with shallow enzyme 3`] = ` |
| 88 | +<Fragment> |
| 89 | + hello foo |
| 90 | +</Fragment> |
| 91 | +`; |
0 commit comments