aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-23 07:26:48 +0800
committerFabio Berger <me@fabioberger.com>2017-11-23 07:26:48 +0800
commitc66fc634529962bc06a9cfa60633e1bc3c538153 (patch)
tree3ec7063d51f18783ff8519b28b6fbe9d1380d44e /packages/0x.js
parent805a055946e6b4285e7db9e30263f4f7f41dd4eb (diff)
parent99f2026ce260915ec9eaf013723f1d618965f008 (diff)
downloaddexon-sol-tools-c66fc634529962bc06a9cfa60633e1bc3c538153.tar
dexon-sol-tools-c66fc634529962bc06a9cfa60633e1bc3c538153.tar.gz
dexon-sol-tools-c66fc634529962bc06a9cfa60633e1bc3c538153.tar.bz2
dexon-sol-tools-c66fc634529962bc06a9cfa60633e1bc3c538153.tar.lz
dexon-sol-tools-c66fc634529962bc06a9cfa60633e1bc3c538153.tar.xz
dexon-sol-tools-c66fc634529962bc06a9cfa60633e1bc3c538153.tar.zst
dexon-sol-tools-c66fc634529962bc06a9cfa60633e1bc3c538153.zip
Merge branch 'development' into addWebsite
* development: Revert "Publish" Publish Add actual version to CHANGELOG Add blockchainLifecycle management to the ExpirationWatcher test Update connect CHANGELOG.md in preperation for publishing Add TODO comment before BigNumber.config() call Prepare connect package for publishing
Diffstat (limited to 'packages/0x.js')
-rw-r--r--packages/0x.js/CHANGELOG.md2
-rw-r--r--packages/0x.js/test/expiration_watcher_test.ts8
2 files changed, 7 insertions, 3 deletions
diff --git a/packages/0x.js/CHANGELOG.md b/packages/0x.js/CHANGELOG.md
index 26e5f528b..235a6eedb 100644
--- a/packages/0x.js/CHANGELOG.md
+++ b/packages/0x.js/CHANGELOG.md
@@ -1,6 +1,6 @@
# CHANGELOG
-vx.x.x
+v0.26.0
------------------------
* Add post-formatter for logs converting `blockNumber`, `logIndex`, `transactionIndex` from hexes to numbers (#231)
* Remove support for Async callback types when used in Subscribe functions (#222)
diff --git a/packages/0x.js/test/expiration_watcher_test.ts b/packages/0x.js/test/expiration_watcher_test.ts
index 0d5ebb909..0f2470070 100644
--- a/packages/0x.js/test/expiration_watcher_test.ts
+++ b/packages/0x.js/test/expiration_watcher_test.ts
@@ -12,11 +12,13 @@ import {TokenUtils} from './utils/token_utils';
import {ExpirationWatcher} from '../src/order_watcher/expiration_watcher';
import {Token, DoneCallback} from '../src/types';
import {ZeroEx} from '../src/0x';
+import {BlockchainLifecycle} from './utils/blockchain_lifecycle';
import {FillScenarios} from './utils/fill_scenarios';
import {reportCallbackErrors} from './utils/report_callback_errors';
chaiSetup.configure();
const expect = chai.expect;
+const blockchainLifecycle = new BlockchainLifecycle();
describe('ExpirationWatcher', () => {
let web3: Web3;
@@ -52,14 +54,16 @@ describe('ExpirationWatcher', () => {
makerTokenAddress = makerToken.address;
takerTokenAddress = takerToken.address;
});
- beforeEach(() => {
+ beforeEach(async () => {
+ await blockchainLifecycle.startAsync();
const sinonTimerConfig = {shouldAdvanceTime: true} as any;
// This constructor has incorrect types
timer = Sinon.useFakeTimers(sinonTimerConfig);
currentUnixTimestampSec = utils.getCurrentUnixTimestampSec();
expirationWatcher = new ExpirationWatcher();
});
- afterEach(() => {
+ afterEach(async () => {
+ await blockchainLifecycle.revertAsync();
timer.restore();
expirationWatcher.unsubscribe();
});