From 70d9361ce3543854aacf43258570423731d1a511 Mon Sep 17 00:00:00 2001 From: puiu <5474275+puiutucutu@users.noreply.github.com> Date: Wed, 25 Sep 2019 18:23:39 -0400 Subject: [PATCH] add clearer example of using `Try` --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 85587bd5..3d29d0cd 100644 --- a/README.md +++ b/README.md @@ -156,9 +156,9 @@ describe('sum()', async assert => { assert({ given: 'NaN', should: 'throw', - actual: Try(sum, 1, NaN), - expected: new TypeError('NaN') - }); + actual: Try(sum, 1, NaN).toString(), + expected: 'TypeError: NaN' + }); }); ```