(actual, msg = '')
| 15 | } |
| 16 | |
| 17 | export function assertFalsy(actual, msg = '') { |
| 18 | if (actual) { |
| 19 | throw new Error(`${formatMsg(msg)}expected: falsy, actual: ${actual}`); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | export function assertStringMatchesRegEx(actual, regex, msg = '') { |
| 24 | if (!regex.test(actual)) { |
no test coverage detected