(e: Error)
| 306 | Spec.pendingSpecExceptionMessage = '=> marked Pending'; |
| 307 | |
| 308 | const extractCustomPendingMessage = function (e: Error) { |
| 309 | const fullMessage = e.toString(); |
| 310 | const boilerplateStart = fullMessage.indexOf( |
| 311 | Spec.pendingSpecExceptionMessage, |
| 312 | ); |
| 313 | const boilerplateEnd = |
| 314 | boilerplateStart + Spec.pendingSpecExceptionMessage.length; |
| 315 | |
| 316 | return fullMessage.slice(boilerplateEnd); |
| 317 | }; |