From 3a6d2c6d688d23fb07d0c9a162f5d2f89ae897cb Mon Sep 17 00:00:00 2001 From: JanMalch <25508038+JanMalch@users.noreply.github.com> Date: Fri, 30 Oct 2020 12:24:56 +0100 Subject: [PATCH] test: fix new default message for asserts --- index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.test.ts b/index.test.ts index b35c641..a74d4a8 100644 --- a/index.test.ts +++ b/index.test.ts @@ -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', () => {