(msg: string, actual?: any, expected?: any, comparison?: string)
| 109 | export function throwError(msg: string): never; |
| 110 | export function throwError(msg: string, actual: any, expected: any, comparison: string): never; |
| 111 | export function throwError(msg: string, actual?: any, expected?: any, comparison?: string): never { |
| 112 | throw new Error( |
| 113 | `ASSERTION ERROR: ${msg}` + |
| 114 | (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`), |
| 115 | ); |
| 116 | } |
| 117 | |
| 118 | export function assertDomNode(node: any): asserts node is Node { |
| 119 | if (!(node instanceof Node)) { |
no outgoing calls
no test coverage detected
searching dependent graphs…