({ nested }: { nested: NestedOuter })
| 159 | } |
| 160 | |
| 161 | export function RenderNestedData({ nested }: { nested: NestedOuter }) { |
| 162 | { |
| 163 | const localData = makeNested() |
| 164 | const expectedShoutState = localData.inner.shout() |
| 165 | const expectedWhisperState = localData.whisper() |
| 166 | const shoutState = nested.inner.shout() |
| 167 | const whisperState = nested.whisper() |
| 168 | |
| 169 | return ( |
| 170 | <div data-testid="data-only-container"> |
| 171 | <h2 data-testid="data-only-heading">data-only</h2> |
| 172 | <div data-testid="shout-container"> |
| 173 | <h3>shout</h3> |
| 174 | <div> |
| 175 | expected:{' '} |
| 176 | <div data-testid="shout-expected-state"> |
| 177 | {JSON.stringify(expectedShoutState)} |
| 178 | </div> |
| 179 | </div> |
| 180 | <div> |
| 181 | actual:{' '} |
| 182 | <div data-testid="shout-actual-state"> |
| 183 | {JSON.stringify(shoutState)} |
| 184 | </div> |
| 185 | </div> |
| 186 | </div> |
| 187 | <div data-testid="whisper-container"> |
| 188 | <h3>whisper</h3> |
| 189 | <div> |
| 190 | expected:{' '} |
| 191 | <div data-testid="whisper-expected-state"> |
| 192 | {JSON.stringify(expectedWhisperState)} |
| 193 | </div> |
| 194 | </div> |
| 195 | <div> |
| 196 | actual:{' '} |
| 197 | <div data-testid="whisper-actual-state"> |
| 198 | {JSON.stringify(whisperState)} |
| 199 | </div> |
| 200 | </div> |
| 201 | </div> |
| 202 | </div> |
| 203 | ) |
| 204 | } |
| 205 | } |
nothing calls this directly
no test coverage detected