Skip to content

Commit

Permalink
Add waffle-chai usage example (TrueFiEng#309)
Browse files Browse the repository at this point in the history
* Add waffle-chai usage example

* Update README.md
  • Loading branch information
rhlsthrm authored Jun 8, 2020
1 parent 431bfd3 commit 1537e3f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions waffle-chai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ yarn add --dev @ethereum-waffle/chai
npm install --save-dev @ethereum-waffle/chai
```

## Usage
```ts
import { expect, use } from "chai";
import { waffleChai } from "@ethereum-waffle/chai";
import { bigNumberify } from "ethers/utils";

use(chaiAsPromised);

expect(bigNumberify("6")).to.be.gt(0);
```

## Feature overview

**NOTE**: You do not need to use this package directly. You can install it through the main package (`ethereum-waffle`) and use it instead.
Expand Down

0 comments on commit 1537e3f

Please sign in to comment.