locklift
Version:
Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.
11 lines (10 loc) • 358 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.supportWithCount = supportWithCount;
function supportWithCount(Assertion, utils) {
Assertion.addMethod("count", function (count) {
const events = utils.flag(this, "messages");
new Assertion(events.length).to.be.eq(count);
return this;
});
}