@0x/dev-utils: Remove no longer applicable test case in chai_test.ts.

This commit is contained in:
Lawrence Forman 2019-08-30 01:57:52 -04:00 committed by Lawrence Forman
parent 8d5e28f099
commit 2b3e7e7ab7

View File

@ -68,13 +68,6 @@ describe('Chai tests', () => {
const revert = new StringRevertError('foo');
expect(error).is.equal(revert);
});
it('should equate an empty ganache transaction revert error to any RevertError', () => {
const error: any = new Error(`VM Exception while processing transaction: revert`);
error.hashes = ['0x1'];
error.results = { '0x1': { error: 'revert', program_counter: 1, return: '0x', reason: undefined } };
const revert = new StringRevertError('foo');
expect(error).is.equal(revert);
});
it('should not equate a ganache transaction revert error with reason to a StringRevertError with a different message', () => {
const message = 'foo';
const error: any = new Error(`VM Exception while processing transaction: revert ${message}`);