(msg)
| 29 | } |
| 30 | |
| 31 | function normalizeError(msg) { |
| 32 | // Take the first sentence to make it easier to assert on. |
| 33 | const idx = msg.indexOf('.'); |
| 34 | if (idx > -1) { |
| 35 | return msg.slice(0, idx + 1); |
| 36 | } |
| 37 | return msg; |
| 38 | } |
| 39 | |
| 40 | describe('rendering React components at document', () => { |
| 41 | beforeEach(() => { |
no outgoing calls
no test coverage detected