UNPKG

@ethereum-waffle/chai

Version:

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

40 lines 2.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.waffleChai = void 0; require("./types"); const bigNumber_1 = require("./matchers/bigNumber"); const reverted_1 = require("./matchers/reverted"); const revertedWith_1 = require("./matchers/revertedWith"); const emit_1 = require("./matchers/emit"); const properAddress_1 = require("./matchers/properAddress"); const properPrivateKey_1 = require("./matchers/properPrivateKey"); const properHex_1 = require("./matchers/properHex"); const hexEqual_1 = require("./matchers/hexEqual"); const changeBalance_1 = require("./matchers/changeBalance"); const changeBalances_1 = require("./matchers/changeBalances"); const changeEtherBalance_1 = require("./matchers/changeEtherBalance"); const changeEtherBalances_1 = require("./matchers/changeEtherBalances"); const changeTokenBalance_1 = require("./matchers/changeTokenBalance"); const changeTokenBalances_1 = require("./matchers/changeTokenBalances"); const calledOnContract_1 = require("./matchers/calledOnContract/calledOnContract"); const calledOnContractWith_1 = require("./matchers/calledOnContract/calledOnContractWith"); function waffleChai(chai, utils) { (0, bigNumber_1.supportBigNumber)(chai.Assertion, utils); (0, reverted_1.supportReverted)(chai.Assertion); (0, revertedWith_1.supportRevertedWith)(chai.Assertion); (0, emit_1.supportEmit)(chai.Assertion); (0, properAddress_1.supportProperAddress)(chai.Assertion); (0, properPrivateKey_1.supportProperPrivateKey)(chai.Assertion); (0, properHex_1.supportProperHex)(chai.Assertion); (0, hexEqual_1.supportHexEqual)(chai.Assertion); (0, changeBalance_1.supportChangeBalance)(chai.Assertion); (0, changeBalances_1.supportChangeBalances)(chai.Assertion); (0, changeEtherBalance_1.supportChangeEtherBalance)(chai.Assertion); (0, changeEtherBalances_1.supportChangeEtherBalances)(chai.Assertion); (0, changeTokenBalance_1.supportChangeTokenBalance)(chai.Assertion); (0, changeTokenBalances_1.supportChangeTokenBalances)(chai.Assertion); (0, calledOnContract_1.supportCalledOnContract)(chai.Assertion); (0, calledOnContractWith_1.supportCalledOnContractWith)(chai.Assertion); } exports.waffleChai = waffleChai; //# sourceMappingURL=index.js.map