diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-21 02:53:49 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-21 02:53:49 +0800 |
commit | 83a2abeee4d68020085a5b9f15c806cd6d3b9e20 (patch) | |
tree | 4229471b7432b308817fb195f4dc33840fdaf044 | |
parent | 49d926013c07d1343ce2d69b413acc7a83bfbe97 (diff) | |
download | dexon-sol-tools-83a2abeee4d68020085a5b9f15c806cd6d3b9e20.tar.gz dexon-sol-tools-83a2abeee4d68020085a5b9f15c806cd6d3b9e20.tar.zst dexon-sol-tools-83a2abeee4d68020085a5b9f15c806cd6d3b9e20.zip |
Rename orderLifetime to orderLifetimeS
-rw-r--r-- | packages/0x.js/test/expiration_watcher_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/0x.js/test/expiration_watcher_test.ts b/packages/0x.js/test/expiration_watcher_test.ts index 629fa7ba6..1b4ba0bf5 100644 --- a/packages/0x.js/test/expiration_watcher_test.ts +++ b/packages/0x.js/test/expiration_watcher_test.ts @@ -66,8 +66,8 @@ describe('ExpirationWatcher', () => { }); it('correctly emits events when order expires', (done: DoneCallback) => { (async () => { - const orderLifetime = 60; - const expirationUnixTimestampSec = currentUnixTimestampSec.plus(orderLifetime); + const orderLifetimeS = 60; + const expirationUnixTimestampSec = currentUnixTimestampSec.plus(orderLifetimeS); const signedOrder = await fillScenarios.createFillableSignedOrderAsync( makerTokenAddress, takerTokenAddress, makerAddress, takerAddress, fillableAmount, expirationUnixTimestampSec, @@ -80,13 +80,13 @@ describe('ExpirationWatcher', () => { done(); }); expirationWatcher.subscribe(callback); - timer.tick(orderLifetime * 1000); + timer.tick(orderLifetimeS * 1000); })().catch(done); }); it('doesn\'t emit events before order expires', (done: DoneCallback) => { (async () => { - const orderLifetime = 60; - const expirationUnixTimestampSec = currentUnixTimestampSec.plus(orderLifetime); + const orderLifetimeS = 60; + const expirationUnixTimestampSec = currentUnixTimestampSec.plus(orderLifetimeS); const signedOrder = await fillScenarios.createFillableSignedOrderAsync( makerTokenAddress, takerTokenAddress, makerAddress, takerAddress, fillableAmount, expirationUnixTimestampSec, @@ -97,7 +97,7 @@ describe('ExpirationWatcher', () => { done(new Error('Emited expiration vent before the order actually expired')); }); expirationWatcher.subscribe(callback); - const notEnoughTime = orderLifetime - 1; + const notEnoughTime = orderLifetimeS - 1; timer.tick(notEnoughTime * 1000); done(); })().catch(done); |