|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`emit asserts for: output match: FormattedHTMLMessage 1`] = ` |
4 |
| -Object { |
5 |
| - "messages": Array [ |
6 |
| - Object { |
7 |
| - "defaultMessage": "<h1>Hello World!</h1>", |
8 |
| - "description": "The default message.", |
9 |
| - "id": "foo.bar.baz", |
10 |
| - }, |
11 |
| - ], |
12 |
| -} |
13 |
| -`; |
14 |
| - |
15 |
| -exports[`emit asserts for: output match: FormattedHTMLMessage 2`] = ` |
16 |
| -"\\"use strict\\"; |
17 |
| -
|
18 |
| -Object.defineProperty(exports, \\"__esModule\\", { |
19 |
| - value: true |
20 |
| -}); |
21 |
| -exports.default = void 0; |
22 |
| -
|
23 |
| -var _react = _interopRequireWildcard(require(\\"react\\")); |
24 |
| -
|
25 |
| -var _reactIntl = require(\\"react-intl\\"); |
26 |
| -
|
27 |
| -function _getRequireWildcardCache() { if (typeof WeakMap !== \\"function\\") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } |
28 |
| -
|
29 |
| -function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \\"object\\" && typeof obj !== \\"function\\") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } |
30 |
| -
|
31 |
| -class Foo extends _react.Component { |
32 |
| - render() { |
33 |
| - return _react.default.createElement(_reactIntl.FormattedHTMLMessage, { |
34 |
| - id: \\"foo.bar.baz\\", |
35 |
| - defaultMessage: \\"<h1>Hello World!</h1>\\" |
36 |
| - }); |
37 |
| - } |
38 |
| -
|
39 |
| -} |
40 |
| -
|
41 |
| -exports.default = Foo;" |
42 |
| -`; |
43 |
| - |
44 |
| -exports[`emit asserts for: output match: FormattedHTMLMessage 3`] = ` |
45 |
| -Array [ |
46 |
| - Object { |
47 |
| - "defaultMessage": "<h1>Hello World!</h1>", |
48 |
| - "description": "The default message.", |
49 |
| - "id": "foo.bar.baz", |
50 |
| - }, |
51 |
| -] |
52 |
| -`; |
53 |
| - |
54 | 3 | exports[`emit asserts for: output match: FormattedMessage 1`] = `
|
55 | 4 | Object {
|
56 | 5 | "messages": Array [
|
@@ -502,9 +451,6 @@ class Foo extends _react.Component {
|
502 | 451 | }), _react.default.createElement(_reactIntl.FormattedMessage, {
|
503 | 452 | id: \\"actual.js..5.object\\",
|
504 | 453 | defaultMessage: \\"NO ID\\"
|
505 |
| - }), _react.default.createElement(_reactIntl.FormattedHTMLMessage, { |
506 |
| - id: \\"actual.js.foo.bar.delta.21.string\\", |
507 |
| - defaultMessage: \\"<h1>Hello World!</h1>\\" |
508 | 454 | }));
|
509 | 455 | }
|
510 | 456 |
|
@@ -544,11 +490,6 @@ Array [
|
544 | 490 | },
|
545 | 491 | "id": "actual.js..5.object",
|
546 | 492 | },
|
547 |
| - Object { |
548 |
| - "defaultMessage": "<h1>Hello World!</h1>", |
549 |
| - "description": "The default message.", |
550 |
| - "id": "actual.js.foo.bar.delta.21.string", |
551 |
| - }, |
552 | 493 | ]
|
553 | 494 | `;
|
554 | 495 |
|
|
0 commit comments