Move chai extension types out of @0x/typescript-typings
This commit is contained in:
parent
2825a201cd
commit
d5c0f5aa47
@ -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;
|
||||
|
@ -1,6 +0,0 @@
|
||||
// tslint:disable: no-namespace
|
||||
declare namespace Chai {
|
||||
interface Assertion {
|
||||
revertWith: (expected: string | RevertError) => Promise<void>;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user