UNPKG

@ethereum-waffle/chai

Version:

A sweet set of chai matchers for your blockchain testing needs.

13 lines 638 B
import { validateContract, validateFnName, validateMockProvider } from './calledOnContractValidators'; import { assertCalledWithParams } from './assertions'; export function supportCalledOnContractWith(Assertion) { Assertion.addMethod('calledOnContractWith', function (contract, parameters) { const fnName = this._obj; const negated = this.__flags.negate; validateContract(contract); validateMockProvider(contract.provider); validateFnName(fnName, contract); assertCalledWithParams(this, contract, fnName, parameters, negated); }); } //# sourceMappingURL=calledOnContractWith.js.map