Indicates the unreachable code path. Calling this throws an error immediately, so this function should be called only if your application data is not consistent.
expect(() => { absurd<number>();}).toThrowError("PANIC: absurd must not be called"); Copy
expect(() => { absurd<number>();}).toThrowError("PANIC: absurd must not be called");
Indicates the unreachable code path. Calling this throws an error immediately, so this function should be called only if your application data is not consistent.
Examples