From 72fb8460e90237fb7879fc47e95d84b6aa54911b Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Mon, 21 May 2018 14:26:25 -0700 Subject: Update code after rebase --- packages/contracts/test/utils/assertions.ts | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 packages/contracts/test/utils/assertions.ts (limited to 'packages/contracts/test') diff --git a/packages/contracts/test/utils/assertions.ts b/packages/contracts/test/utils/assertions.ts deleted file mode 100644 index 538a6e4fc..000000000 --- a/packages/contracts/test/utils/assertions.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as chai from 'chai'; -import * as _ from 'lodash'; - -import { constants } from '../../util/constants'; - -const expect = chai.expect; - -// throws if the given promise does not reject with one of two expected error -// messages. -export const expectRevertOrAlwaysFailingTransaction = (p: Promise) => { - return expect(p) - .to.be.rejected() - .then(e => { - expect(e).to.satisfy( - (err: Error) => - _.includes(err.message, constants.REVERT) || - _.includes(err.message, constants.ALWAYS_FAILING_TRANSACTION), - ); - }); -}; -- cgit v1.2.3