aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-08-24 00:14:19 +0800
committerFabio Berger <me@fabioberger.com>2017-08-24 00:14:19 +0800
commit98be7867649337a18441e517790c748c722ee730 (patch)
treee585796a6ee17e97b17b745b2ce1fd2d9ca6d35c /test
parentc12e48d28a811ace4bf7543a5c06471170ddf3f9 (diff)
downloaddexon-sol-tools-98be7867649337a18441e517790c748c722ee730.tar
dexon-sol-tools-98be7867649337a18441e517790c748c722ee730.tar.gz
dexon-sol-tools-98be7867649337a18441e517790c748c722ee730.tar.bz2
dexon-sol-tools-98be7867649337a18441e517790c748c722ee730.tar.lz
dexon-sol-tools-98be7867649337a18441e517790c748c722ee730.tar.xz
dexon-sol-tools-98be7867649337a18441e517790c748c722ee730.tar.zst
dexon-sol-tools-98be7867649337a18441e517790c748c722ee730.zip
rename method for clarity since we return a Token and not tokenMetadata
Diffstat (limited to 'test')
-rw-r--r--test/token_registry_wrapper_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/token_registry_wrapper_test.ts b/test/token_registry_wrapper_test.ts
index 72d385b48..6b5640c6c 100644
--- a/test/token_registry_wrapper_test.ts
+++ b/test/token_registry_wrapper_test.ts
@@ -38,19 +38,19 @@ describe('TokenRegistryWrapper', () => {
});
});
});
- describe('#getTokenMetadataIfExistsAsync', () => {
+ describe('#getTokenIfExistsAsync', () => {
it('should return the token added to the tokenRegistry during the migration', async () => {
const tokens = await zeroEx.tokenRegistry.getTokensAsync();
const aToken = tokens[0];
- const token = await zeroEx.tokenRegistry.getTokenMetadataIfExistsAsync(aToken.address);
+ const token = await zeroEx.tokenRegistry.getTokenIfExistsAsync(aToken.address);
const schemaValidator = new SchemaValidator();
const validationResult = schemaValidator.validate(token, tokenSchema);
expect(validationResult.errors).to.have.lengthOf(0);
});
it('should return return undefined when passed a token address not in the tokenRegistry', async () => {
- const tokenIfExists = await zeroEx.tokenRegistry.getTokenMetadataIfExistsAsync(unregisteredTokenAddress);
const unregisteredTokenAddress = '0x5409ed021d9299bf6814279a6a1411a7e866a631';
+ const tokenIfExists = await zeroEx.tokenRegistry.getTokenIfExistsAsync(unregisteredTokenAddress);
expect(tokenIfExists).to.be.undefined();
});
});