diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-04-10 03:54:50 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-04-12 18:52:21 +0800 |
commit | 783314c037a85effbc377fdc01cd40235ad388ed (patch) | |
tree | a9b531af9b5a6cfdc34674baf9c874c303a11072 /packages/deployer/test | |
parent | 15cf64318ccc852fa2e779ea4e3685a406bab851 (diff) | |
download | dexon-sol-tools-783314c037a85effbc377fdc01cd40235ad388ed.tar dexon-sol-tools-783314c037a85effbc377fdc01cd40235ad388ed.tar.gz dexon-sol-tools-783314c037a85effbc377fdc01cd40235ad388ed.tar.bz2 dexon-sol-tools-783314c037a85effbc377fdc01cd40235ad388ed.tar.lz dexon-sol-tools-783314c037a85effbc377fdc01cd40235ad388ed.tar.xz dexon-sol-tools-783314c037a85effbc377fdc01cd40235ad388ed.tar.zst dexon-sol-tools-783314c037a85effbc377fdc01cd40235ad388ed.zip |
Improve on readability
Diffstat (limited to 'packages/deployer/test')
-rw-r--r-- | packages/deployer/test/compiler_utils_test.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/deployer/test/compiler_utils_test.ts b/packages/deployer/test/compiler_utils_test.ts index 246304858..8baa30481 100644 --- a/packages/deployer/test/compiler_utils_test.ts +++ b/packages/deployer/test/compiler_utils_test.ts @@ -50,11 +50,7 @@ describe('Compiler utils', () => { const exchangeSource = await fsWrapper.readFileAsync(`${__dirname}/fixtures/contracts/Exchange.sol`, { encoding: 'utf8', }); - expect(parseDependencies(exchangeSource)).to.be.deep.equal([ - 'TokenTransferProxy.sol', - 'Token.sol', - 'SafeMath.sol', - ]); + expect(parseDependencies(exchangeSource)).to.be.deep.equal(['TokenTransferProxy', 'Token', 'SafeMath']); }); it('correctly parses TokenTransferProxy dependencies', async () => { const exchangeSource = await fsWrapper.readFileAsync( @@ -63,7 +59,7 @@ describe('Compiler utils', () => { encoding: 'utf8', }, ); - expect(parseDependencies(exchangeSource)).to.be.deep.equal(['Token.sol', 'Ownable.sol']); + expect(parseDependencies(exchangeSource)).to.be.deep.equal(['Token', 'Ownable']); }); // TODO: For now that doesn't work. This will work after we switch to a grammar-based parser it.skip('correctly parses commented out dependencies', async () => { |