diff options
author | Jacob Evans <dekz@dekz.net> | 2018-04-18 14:21:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 14:21:56 +0800 |
commit | 823f2db09fba8f19806ba3fa4bd679e12a58be3f (patch) | |
tree | b0dc7265a22c0120cd42d026cacc14dc8d7cc80c /packages/deployer/test/compiler_utils_test.ts | |
parent | 12d5c35d143fdf2cf15b7f689c75a7ada13227aa (diff) | |
parent | a71e511f82c2a21f8042c03fb0eb652ec40ad5df (diff) | |
download | dexon-0x-contracts-823f2db09fba8f19806ba3fa4bd679e12a58be3f.tar.gz dexon-0x-contracts-823f2db09fba8f19806ba3fa4bd679e12a58be3f.tar.zst dexon-0x-contracts-823f2db09fba8f19806ba3fa4bd679e12a58be3f.zip |
Merge pull request #531 from 0xProject/feature/deployer/solidity-0.4.22
Solidity 0.4.22
Diffstat (limited to 'packages/deployer/test/compiler_utils_test.ts')
-rw-r--r-- | packages/deployer/test/compiler_utils_test.ts | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/packages/deployer/test/compiler_utils_test.ts b/packages/deployer/test/compiler_utils_test.ts index e2b95f289..393f6d3f3 100644 --- a/packages/deployer/test/compiler_utils_test.ts +++ b/packages/deployer/test/compiler_utils_test.ts @@ -1,5 +1,6 @@ import * as chai from 'chai'; import * as dirtyChai from 'dirty-chai'; +import * as _ from 'lodash'; import 'mocha'; import { @@ -51,11 +52,16 @@ describe('Compiler utils', () => { const source = await fsWrapper.readFileAsync(path, { encoding: 'utf8', }); - expect(parseDependencies({ source, path })).to.be.deep.equal([ + const dependencies = parseDependencies({ source, path }); + const expectedDependencies = [ 'zeppelin-solidity/contracts/token/ERC20/ERC20.sol', - '/home/circleci/repo/packages/deployer/lib/test/fixtures/contracts/TokenTransferProxy.sol', - '/home/circleci/repo/packages/deployer/lib/test/fixtures/contracts/base/SafeMath.sol', - ]); + 'packages/deployer/lib/test/fixtures/contracts/TokenTransferProxy.sol', + 'packages/deployer/lib/test/fixtures/contracts/base/SafeMath.sol', + ]; + _.each(expectedDependencies, expectedDepdency => { + const foundDependency = _.find(dependencies, dependency => _.endsWith(dependency, expectedDepdency)); + expect(foundDependency, `${expectedDepdency} not found`).to.not.be.undefined(); + }); }); it('correctly parses TokenTransferProxy dependencies', async () => { const path = `${__dirname}/fixtures/contracts/TokenTransferProxy.sol`; |