(haystack, needle, message)
| 43 | } |
| 44 | }, |
| 45 | includes(haystack, needle, message) { |
| 46 | if (!haystack.includes(needle)) { |
| 47 | throw new AssertionError( |
| 48 | message ?? `Expected "${haystack}" to include "${needle}"`, |
| 49 | haystack, |
| 50 | needle, |
| 51 | ); |
| 52 | } |
| 53 | }, |
| 54 | truthy(value, message) { |
| 55 | if (!value) { |
| 56 | throw new AssertionError( |
nothing calls this directly
no test coverage detected
searching dependent graphs…