diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 16:49:34 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 16:49:34 +0800 |
commit | 4d63a4d02a68974df75c9cae85d43c0ba628c740 (patch) | |
tree | 6e091590b1dcff7ee0d0d858d6bb6a9eafe7fd3e /test | |
parent | 1e69d2d1e1d27b5438d9064bd9a41cd53014770f (diff) | |
download | dexon-sol-tools-4d63a4d02a68974df75c9cae85d43c0ba628c740.tar dexon-sol-tools-4d63a4d02a68974df75c9cae85d43c0ba628c740.tar.gz dexon-sol-tools-4d63a4d02a68974df75c9cae85d43c0ba628c740.tar.bz2 dexon-sol-tools-4d63a4d02a68974df75c9cae85d43c0ba628c740.tar.lz dexon-sol-tools-4d63a4d02a68974df75c9cae85d43c0ba628c740.tar.xz dexon-sol-tools-4d63a4d02a68974df75c9cae85d43c0ba628c740.tar.zst dexon-sol-tools-4d63a4d02a68974df75c9cae85d43c0ba628c740.zip |
use to.have.lengthOf
Diffstat (limited to 'test')
-rw-r--r-- | test/token_registry_wrapper_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/token_registry_wrapper_test.ts b/test/token_registry_wrapper_test.ts index cd435c48c..c91555d8b 100644 --- a/test/token_registry_wrapper_test.ts +++ b/test/token_registry_wrapper_test.ts @@ -31,12 +31,12 @@ describe('TokenRegistryWrapper', () => { describe('#getTokensAsync', () => { it('should return all the tokens added to the tokenRegistry during the migration', async () => { const tokens = await zeroEx.tokenRegistry.getTokensAsync(); - expect(tokens.length).to.be.equal(TOKEN_REGISTRY_SIZE_AFTER_MIGRATION); + expect(tokens).to.have.lengthOf(TOKEN_REGISTRY_SIZE_AFTER_MIGRATION); const schemaValidator = new SchemaValidator(); _.each(tokens, token => { const validationResult = schemaValidator.validate(token, tokenSchema); - expect(validationResult.errors.length).to.be.equal(0); + expect(validationResult.errors).to.have.lengthOf(0); }); }); }); |