(operator: string | undefined, stack: string)
| 75 | }; |
| 76 | |
| 77 | const getOperatorName = (operator: string | undefined, stack: string) => { |
| 78 | if (typeof operator === 'string') { |
| 79 | return assertOperatorsMap[operator] || operator; |
| 80 | } |
| 81 | if (stack.match('.doesNotThrow')) { |
| 82 | return 'doesNotThrow'; |
| 83 | } |
| 84 | if (stack.match('.throws')) { |
| 85 | return 'throws'; |
| 86 | } |
| 87 | return ''; |
| 88 | }; |
| 89 | |
| 90 | const operatorMessage = (operator: string | undefined) => { |
| 91 | const niceOperatorName = getOperatorName(operator, ''); |
no test coverage detected