(str)
| 21 | let assertConsoleErrorDev; |
| 22 | |
| 23 | function normalizeCodeLocInfo(str) { |
| 24 | return ( |
| 25 | str && |
| 26 | str.replace(/^ +(?:at|in) ([\S]+)[^\n]*/gm, function (m, name) { |
| 27 | const dot = name.lastIndexOf('.'); |
| 28 | if (dot !== -1) { |
| 29 | name = name.slice(dot + 1); |
| 30 | } |
| 31 | return ' in ' + name + (/\d/.test(m) ? ' (at **)' : ''); |
| 32 | }) |
| 33 | ); |
| 34 | } |
| 35 | |
| 36 | describe('ReactUpdates', () => { |
| 37 | beforeEach(() => { |
no test coverage detected