Skip to content

Commit

Permalink
test: fix new default message for asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMalch committed Oct 30, 2020
1 parent 3a792d4 commit 3a6d2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('contracts', () => {
contractTest(requires, PreconditionError, 'Unmet precondition');
contractTest(checks, IllegalStateError, 'Callee invariant violation');
contractTest(ensures, PostconditionError, 'Unmet postcondition');
contractTest(asserts, AssertionError, 'Failed Assertion');
contractTest(asserts, AssertionError, '');
});

describe('NonNullish contracts', () => {
Expand Down

0 comments on commit 3a6d2c6

Please sign in to comment.