Move chai extension types out of @0x/typescript-typings
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import { RevertError } from '@0x/utils';
|
||||||
import * as chai from 'chai';
|
import * as chai from 'chai';
|
||||||
import chaiAsPromised = require('chai-as-promised');
|
import chaiAsPromised = require('chai-as-promised');
|
||||||
import ChaiBigNumber = require('chai-bignumber');
|
import ChaiBigNumber = require('chai-bignumber');
|
||||||
@@ -5,6 +6,14 @@ import * as dirtyChai from 'dirty-chai';
|
|||||||
|
|
||||||
import { revertErrorHelper } from './chai_revert_error';
|
import { revertErrorHelper } from './chai_revert_error';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
namespace Chai {
|
||||||
|
export interface Assertion {
|
||||||
|
revertWith: (expected: string | RevertError) => Promise<void>;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export const chaiSetup = {
|
export const chaiSetup = {
|
||||||
configure(): void {
|
configure(): void {
|
||||||
chai.config.includeStack = true;
|
chai.config.includeStack = true;
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
// tslint:disable: no-namespace
|
|
||||||
declare namespace Chai {
|
|
||||||
interface Assertion {
|
|
||||||
revertWith: (expected: string | RevertError) => Promise<void>;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user