Move chai extension types out of @0x/typescript-typings

This commit is contained in:
fabioberger 2019-10-03 10:37:09 +08:00
parent 2825a201cd
commit d5c0f5aa47
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,4 @@
import { RevertError } from '@0x/utils';
import * as chai from 'chai';
import chaiAsPromised = require('chai-as-promised');
import ChaiBigNumber = require('chai-bignumber');
@ -5,6 +6,14 @@ import * as dirtyChai from 'dirty-chai';
import { revertErrorHelper } from './chai_revert_error';
declare global {
namespace Chai {
export interface Assertion {
revertWith: (expected: string | RevertError) => Promise<void>;
}
}
}
export const chaiSetup = {
configure(): void {
chai.config.includeStack = true;

View File

@ -1,6 +0,0 @@
// tslint:disable: no-namespace
declare namespace Chai {
interface Assertion {
revertWith: (expected: string | RevertError) => Promise<void>;
}
}