From 251218af8b3947d0bad531d995dbb4e161058143 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Wed, 16 May 2018 17:36:37 -0700 Subject: Use make-promises-safe to catch unhandled rejections in tests --- packages/metacoin/package.json | 3 ++- packages/metacoin/test/metacoin_test.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/metacoin') diff --git a/packages/metacoin/package.json b/packages/metacoin/package.json index e8ed6f100..83d083b3f 100644 --- a/packages/metacoin/package.json +++ b/packages/metacoin/package.json @@ -2,7 +2,7 @@ "name": "@0xproject/metacoin", "version": "0.0.6", "engines": { - "node" : ">=6.12" + "node": ">=6.12" }, "private": true, "description": "Example solidity project using 0x dev tools", @@ -45,6 +45,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^2.0.1", "dirty-chai": "^2.0.1", + "make-promises-safe": "^1.1.0", "npm-run-all": "^4.1.2", "shx": "^0.2.2", "tslint": "5.8.0", diff --git a/packages/metacoin/test/metacoin_test.ts b/packages/metacoin/test/metacoin_test.ts index 8369632c2..d1331a4dc 100644 --- a/packages/metacoin/test/metacoin_test.ts +++ b/packages/metacoin/test/metacoin_test.ts @@ -4,6 +4,7 @@ import { LogWithDecodedArgs } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as chai from 'chai'; +import 'make-promises-safe'; import * as MetacoinArtifact from '../artifacts/Metacoin.json'; import { MetacoinContract, TransferContractEventArgs } from '../src/contract_wrappers/metacoin'; -- cgit