Skip to content

Commit

Permalink
docs: fix bad return value comment (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 authored May 5, 2021
1 parent 34ab776 commit c7d17ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/smock/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit c7d17ca

Please sign in to comment.