Replace chai.should with chai.expect (#1780)
* changed exxpect to expect wherever applicable * Merged with latest branch * Updated merkleTree helper to latest master branch * Made linting fixes * Fix for test build * updated for Coverage * Updated Address.test.js * Undo package-lock changes.
This commit is contained in:
committed by
Francisco Giordano
parent
852e11c2db
commit
489d2e85f1
@ -1,6 +1,8 @@
|
||||
const { constants, expectEvent, expectRevert } = require('openzeppelin-test-helpers');
|
||||
const { ZERO_ADDRESS } = constants;
|
||||
|
||||
const { expect } = require('chai');
|
||||
|
||||
const SecondaryMock = artifacts.require('SecondaryMock');
|
||||
|
||||
contract('Secondary', function ([_, primary, newPrimary, other]) {
|
||||
@ -9,7 +11,7 @@ contract('Secondary', function ([_, primary, newPrimary, other]) {
|
||||
});
|
||||
|
||||
it('stores the primary\'s address', async function () {
|
||||
(await this.secondary.primary()).should.equal(primary);
|
||||
expect(await this.secondary.primary()).to.equal(primary);
|
||||
});
|
||||
|
||||
describe('onlyPrimary', function () {
|
||||
@ -28,7 +30,7 @@ contract('Secondary', function ([_, primary, newPrimary, other]) {
|
||||
it('makes the recipient the new primary', async function () {
|
||||
const { logs } = await this.secondary.transferPrimary(newPrimary, { from: primary });
|
||||
expectEvent.inLogs(logs, 'PrimaryTransferred', { recipient: newPrimary });
|
||||
(await this.secondary.primary()).should.equal(newPrimary);
|
||||
expect(await this.secondary.primary()).to.equal(newPrimary);
|
||||
});
|
||||
|
||||
it('reverts when transferring to the null address', async function () {
|
||||
|
||||
Reference in New Issue
Block a user