diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-19 21:11:08 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-19 22:41:48 +0800 |
commit | 657b698e1eba7fde2322bb81547eba26491c0af4 (patch) | |
tree | 89572e6217df07336f584d56ac0c49e6385e5601 /packages/sol-compiler/test | |
parent | 8ddf925a8feb41e240871fe0d57e0f40b9bb4896 (diff) | |
download | dexon-sol-tools-657b698e1eba7fde2322bb81547eba26491c0af4.tar dexon-sol-tools-657b698e1eba7fde2322bb81547eba26491c0af4.tar.gz dexon-sol-tools-657b698e1eba7fde2322bb81547eba26491c0af4.tar.bz2 dexon-sol-tools-657b698e1eba7fde2322bb81547eba26491c0af4.tar.lz dexon-sol-tools-657b698e1eba7fde2322bb81547eba26491c0af4.tar.xz dexon-sol-tools-657b698e1eba7fde2322bb81547eba26491c0af4.tar.zst dexon-sol-tools-657b698e1eba7fde2322bb81547eba26491c0af4.zip |
Add sol-compiler watch mode
Diffstat (limited to 'packages/sol-compiler/test')
-rw-r--r-- | packages/sol-compiler/test/compiler_utils_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/sol-compiler/test/compiler_utils_test.ts b/packages/sol-compiler/test/compiler_utils_test.ts index 4fe7b994e..b8c18110c 100644 --- a/packages/sol-compiler/test/compiler_utils_test.ts +++ b/packages/sol-compiler/test/compiler_utils_test.ts @@ -52,7 +52,7 @@ describe('Compiler utils', () => { const source = await fsWrapper.readFileAsync(path, { encoding: 'utf8', }); - const dependencies = parseDependencies({ source, path }); + const dependencies = parseDependencies({ source, path, absolutePath: path }); const expectedDependencies = [ 'zeppelin-solidity/contracts/token/ERC20/ERC20.sol', 'packages/sol-compiler/lib/test/fixtures/contracts/TokenTransferProxy.sol', @@ -68,7 +68,7 @@ describe('Compiler utils', () => { const source = await fsWrapper.readFileAsync(path, { encoding: 'utf8', }); - expect(parseDependencies({ source, path })).to.be.deep.equal([ + expect(parseDependencies({ source, path, absolutePath: path })).to.be.deep.equal([ 'zeppelin-solidity/contracts/ownership/Ownable.sol', 'zeppelin-solidity/contracts/token/ERC20/ERC20.sol', ]); @@ -77,7 +77,7 @@ describe('Compiler utils', () => { it.skip('correctly parses commented out dependencies', async () => { const path = ''; const source = `// import "./TokenTransferProxy.sol";`; - expect(parseDependencies({ path, source })).to.be.deep.equal([]); + expect(parseDependencies({ path, source, absolutePath: path })).to.be.deep.equal([]); }); }); }); |