|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`Render in inactive state, then toggle active state 1`] = ` |
| 4 | +ShallowWrapper { |
| 5 | + "length": 1, |
| 6 | + Symbol(enzyme.__root__): [Circular], |
| 7 | + Symbol(enzyme.__unrendered__): <ScrollIntoViewIfNeeded |
| 8 | + active={false} |
| 9 | + elementType="div" |
| 10 | + options={ |
| 11 | + Object { |
| 12 | + "duration": 250, |
| 13 | + "easing": "easeOut", |
| 14 | + } |
| 15 | + } |
| 16 | + > |
| 17 | + <MockChild /> |
| 18 | + </ScrollIntoViewIfNeeded>, |
| 19 | + Symbol(enzyme.__renderer__): Object { |
| 20 | + "batchedUpdates": [Function], |
| 21 | + "getNode": [Function], |
| 22 | + "render": [Function], |
| 23 | + "simulateEvent": [Function], |
| 24 | + "unmount": [Function], |
| 25 | + }, |
| 26 | + Symbol(enzyme.__node__): Object { |
| 27 | + "instance": null, |
| 28 | + "key": undefined, |
| 29 | + "nodeType": "host", |
| 30 | + "props": Object { |
| 31 | + "children": <MockChild />, |
| 32 | + }, |
| 33 | + "ref": Object { |
| 34 | + "current": null, |
| 35 | + }, |
| 36 | + "rendered": Object { |
| 37 | + "instance": null, |
| 38 | + "key": undefined, |
| 39 | + "nodeType": "function", |
| 40 | + "props": Object {}, |
| 41 | + "ref": null, |
| 42 | + "rendered": null, |
| 43 | + "type": [Function], |
| 44 | + }, |
| 45 | + "type": "div", |
| 46 | + }, |
| 47 | + Symbol(enzyme.__nodes__): Array [ |
| 48 | + Object { |
| 49 | + "instance": null, |
| 50 | + "key": undefined, |
| 51 | + "nodeType": "host", |
| 52 | + "props": Object { |
| 53 | + "children": <MockChild />, |
| 54 | + }, |
| 55 | + "ref": Object { |
| 56 | + "current": null, |
| 57 | + }, |
| 58 | + "rendered": Object { |
| 59 | + "instance": null, |
| 60 | + "key": undefined, |
| 61 | + "nodeType": "function", |
| 62 | + "props": Object {}, |
| 63 | + "ref": null, |
| 64 | + "rendered": null, |
| 65 | + "type": [Function], |
| 66 | + }, |
| 67 | + "type": "div", |
| 68 | + }, |
| 69 | + ], |
| 70 | + Symbol(enzyme.__options__): Object { |
| 71 | + "adapter": ReactSixteenAdapter { |
| 72 | + "options": Object { |
| 73 | + "enableComponentDidUpdateOnSetState": true, |
| 74 | + }, |
| 75 | + }, |
| 76 | + }, |
| 77 | +} |
| 78 | +`; |
| 79 | + |
| 80 | +exports[`Render with no props 1`] = ` |
| 81 | +ShallowWrapper { |
| 82 | + "length": 1, |
| 83 | + Symbol(enzyme.__root__): [Circular], |
| 84 | + Symbol(enzyme.__unrendered__): <ScrollIntoViewIfNeeded |
| 85 | + active={true} |
| 86 | + elementType="div" |
| 87 | + options={ |
| 88 | + Object { |
| 89 | + "duration": 250, |
| 90 | + "easing": "easeOut", |
| 91 | + } |
| 92 | + } |
| 93 | + > |
| 94 | + <MockChild /> |
| 95 | + </ScrollIntoViewIfNeeded>, |
| 96 | + Symbol(enzyme.__renderer__): Object { |
| 97 | + "batchedUpdates": [Function], |
| 98 | + "getNode": [Function], |
| 99 | + "render": [Function], |
| 100 | + "simulateEvent": [Function], |
| 101 | + "unmount": [Function], |
| 102 | + }, |
| 103 | + Symbol(enzyme.__node__): Object { |
| 104 | + "instance": null, |
| 105 | + "key": undefined, |
| 106 | + "nodeType": "host", |
| 107 | + "props": Object { |
| 108 | + "children": <MockChild />, |
| 109 | + }, |
| 110 | + "ref": Object { |
| 111 | + "current": null, |
| 112 | + }, |
| 113 | + "rendered": Object { |
| 114 | + "instance": null, |
| 115 | + "key": undefined, |
| 116 | + "nodeType": "function", |
| 117 | + "props": Object {}, |
| 118 | + "ref": null, |
| 119 | + "rendered": null, |
| 120 | + "type": [Function], |
| 121 | + }, |
| 122 | + "type": "div", |
| 123 | + }, |
| 124 | + Symbol(enzyme.__nodes__): Array [ |
| 125 | + Object { |
| 126 | + "instance": null, |
| 127 | + "key": undefined, |
| 128 | + "nodeType": "host", |
| 129 | + "props": Object { |
| 130 | + "children": <MockChild />, |
| 131 | + }, |
| 132 | + "ref": Object { |
| 133 | + "current": null, |
| 134 | + }, |
| 135 | + "rendered": Object { |
| 136 | + "instance": null, |
| 137 | + "key": undefined, |
| 138 | + "nodeType": "function", |
| 139 | + "props": Object {}, |
| 140 | + "ref": null, |
| 141 | + "rendered": null, |
| 142 | + "type": [Function], |
| 143 | + }, |
| 144 | + "type": "div", |
| 145 | + }, |
| 146 | + ], |
| 147 | + Symbol(enzyme.__options__): Object { |
| 148 | + "adapter": ReactSixteenAdapter { |
| 149 | + "options": Object { |
| 150 | + "enableComponentDidUpdateOnSetState": true, |
| 151 | + }, |
| 152 | + }, |
| 153 | + }, |
| 154 | +} |
| 155 | +`; |
0 commit comments