Minor test style improvements (#1219)
* Changed .eq to .equal * Changed equal(bool) to .to.be.bool * Changed be.bool to equal(bool), disallowed unused expressions.
This commit is contained in:
@ -24,7 +24,7 @@ contract('MerkleProof', function () {
|
||||
|
||||
const leaf = bufferToHex(sha3(elements[0]));
|
||||
|
||||
(await merkleProof.verifyProof(proof, root, leaf)).should.be.true;
|
||||
(await merkleProof.verifyProof(proof, root, leaf)).should.equal(true);
|
||||
});
|
||||
|
||||
it('should return false for an invalid Merkle proof', async function () {
|
||||
@ -40,7 +40,7 @@ contract('MerkleProof', function () {
|
||||
|
||||
const badProof = badMerkleTree.getHexProof(badElements[0]);
|
||||
|
||||
(await merkleProof.verifyProof(badProof, correctRoot, correctLeaf)).should.be.false;
|
||||
(await merkleProof.verifyProof(badProof, correctRoot, correctLeaf)).should.equal(false);
|
||||
});
|
||||
|
||||
it('should return false for a Merkle proof of invalid length', async function () {
|
||||
@ -54,7 +54,7 @@ contract('MerkleProof', function () {
|
||||
|
||||
const leaf = bufferToHex(sha3(elements[0]));
|
||||
|
||||
(await merkleProof.verifyProof(badProof, root, leaf)).should.be.false;
|
||||
(await merkleProof.verifyProof(badProof, root, leaf)).should.equal(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user