Skip to content

Commit

Permalink
fix(fail): use return type of never (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfulton26 authored Jul 5, 2021
1 parent 1914407 commit fe93815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/asserts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ export function assertObjectMatch(
/**
* Forcefully throws a failed assertion
*/
export function fail(msg?: string): void {
export function fail(msg?: string): never {
assert(false, `Failed assertion${msg ? `: ${msg}` : "."}`);
}

Expand Down

0 comments on commit fe93815

Please sign in to comment.