Skip to content

Commit 707cdba

Browse files
committed
simplify expressions
1 parent 43afcfc commit 707cdba

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/splitter_split_tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { BN } = web3.utils.BN;
55

66
// Enable and inject BN dependency
77
chai.use(require("chai-bn")(BN));
8-
const { assert } = chai;
8+
const { assert, expect } = chai;
99

1010
contract("Splitter", (accounts) => {
1111
before(async () => {
@@ -152,7 +152,7 @@ contract("Splitter", (accounts) => {
152152
.then((receiver1Balance) => {
153153
const expected = new BN(splitCount * _splitAmount);
154154
const actual = new BN(receiver1Balance);
155-
chai.expect(actual).to.be.a.bignumber.that.equals(expected);
155+
expect(actual).to.be.a.bignumber.that.equals(expected);
156156
});
157157
});
158158

test/splitter_withdraw_tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { BN } = web3.utils.BN;
55

66
// Enable and inject BN dependency
77
chai.use(require("chai-bn")(BN));
8-
const { assert } = chai;
8+
const { assert, expect } = chai;
99

1010
contract("Splitter", (accounts) => {
1111
let splitter;
@@ -75,7 +75,7 @@ contract("Splitter", (accounts) => {
7575

7676
const expectedAfterBalance = beforeBalance.add(owed).sub(gasCost);
7777

78-
chai.expect(afterBalance).to.be.a.bignumber.that.equals(expectedAfterBalance);
78+
expect(afterBalance).to.be.a.bignumber.that.equals(expectedAfterBalance);
7979
});
8080

8181
it("should withdraw exact amount assigned in storage", async () => {

0 commit comments

Comments
 (0)