From c7d17ca261537900ba0fa5fa9b6a807464afc823 Mon Sep 17 00:00:00 2001 From: t11s Date: Wed, 5 May 2021 14:02:38 -0700 Subject: [PATCH] docs: fix bad return value comment (#756) --- packages/smock/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/smock/README.md b/packages/smock/README.md index fda50c981d76..0243a226bb92 100644 --- a/packages/smock/README.md +++ b/packages/smock/README.md @@ -286,7 +286,7 @@ MyMockContract.smocked.myFunction.will.return.with(() => { return 'Some return value!' }) -console.log(await MyMockContract.myFunction()) // ['Some return value!'] +console.log(await MyMockContract.myFunction()) // 'Some return value!' ``` ### Returning a Function (w/ Arguments) @@ -304,7 +304,7 @@ MyMockContract.smocked.myFunction.will.return.with((myFunctionArgument: string) return myFunctionArgument }) -console.log(await MyMockContract.myFunction('Some return value!')) // ['Some return value!'] +console.log(await MyMockContract.myFunction('Some return value!')) // 'Some return value!' ``` ### Reverting (w/o Data)