(operator: string | null, stack: string)
| 33 | }; |
| 34 | |
| 35 | const getOperatorName = (operator: string | null, stack: string) => { |
| 36 | if (typeof operator === 'string') { |
| 37 | return assertOperatorsMap[operator] || operator; |
| 38 | } |
| 39 | if (stack.match('.doesNotThrow')) { |
| 40 | return 'doesNotThrow'; |
| 41 | } |
| 42 | if (stack.match('.throws')) { |
| 43 | return 'throws'; |
| 44 | } |
| 45 | return ''; |
| 46 | }; |
| 47 | |
| 48 | const operatorMessage = (operator: string | null) => { |
| 49 | const niceOperatorName = getOperatorName(operator, ''); |
no test coverage detected