Skip to content

Commit b5613c6

Browse files
committed
docs: split examples
1 parent 8931d52 commit b5613c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

v-next/hardhat-viem-assertions/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ await viem.assertions.revertWithCustomErrorWithArgs(
115115
"CustomErrorWithUintAndString",
116116
[(arg: bigint) => arg === 1n, "test"],
117117
);
118+
```
118119

120+
```ts
119121
import { anyValue } from "@nomicfoundation/hardhat-toolbox-viem/predicates";
120122

121123
await viem.assertions.revertWithCustomErrorWithArgs(
@@ -162,7 +164,9 @@ await viem.assertions.emitWithArgs(
162164
"WithTwoUintArgs",
163165
[1n, (arg: bigint) => arg >= 2],
164166
);
167+
```
165168

169+
```ts
166170
import { anyValue } from "@nomicfoundation/hardhat-toolbox-viem/predicates";
167171

168172
await viem.assertions.emitWithArgs(

0 commit comments

Comments
 (0)