(message, pattern)
| 48 | |
| 49 | // Patterns may be strings (substring match) or regexes. |
| 50 | function matchesPattern(message, pattern) { |
| 51 | return typeof pattern === 'string' ? message.indexOf(pattern) > -1 : pattern.test(message); |
| 52 | } |
| 53 | |
| 54 | function failTestOnConsoleError() { |
| 55 | const error = console.error; |
no outgoing calls
no test coverage detected