aboutsummaryrefslogtreecommitdiffstats
path: root/packages/deployer/test
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-04-01 14:54:56 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-04-02 01:45:25 +0800
commit20fec2943bebc50059b1a9a0646f263b07aba88b (patch)
tree431c578baba8be739f243f786bd035e207beffa0 /packages/deployer/test
parent1bac5019e84a11843fed3100c36c9b3c47abe430 (diff)
downloaddexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar
dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.gz
dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.bz2
dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.lz
dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.xz
dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.tar.zst
dexon-sol-tools-20fec2943bebc50059b1a9a0646f263b07aba88b.zip
Create solc_bin dir if does not exist before attempting to compile
Diffstat (limited to 'packages/deployer/test')
-rw-r--r--packages/deployer/test/compiler_utils_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/deployer/test/compiler_utils_test.ts b/packages/deployer/test/compiler_utils_test.ts
index 1867177dc..246304858 100644
--- a/packages/deployer/test/compiler_utils_test.ts
+++ b/packages/deployer/test/compiler_utils_test.ts
@@ -3,7 +3,7 @@ import * as dirtyChai from 'dirty-chai';
import 'mocha';
import {
- createArtifactsDirIfDoesNotExistAsync,
+ createDirIfDoesNotExistAsync,
getNormalizedErrMsg,
parseDependencies,
parseSolidityVersionRange,
@@ -21,11 +21,11 @@ describe('Compiler utils', () => {
expect(normalizedErrMsg).to.be.equal('Token.sol:6:46: Warning: Unused local variable');
});
});
- describe('#createArtifactsDirIfDoesNotExistAsync', () => {
+ describe('#createDirIfDoesNotExistAsync', () => {
it('creates artifacts dir', async () => {
const artifactsDir = `${__dirname}/artifacts`;
expect(fsWrapper.doesPathExistSync(artifactsDir)).to.be.false();
- await createArtifactsDirIfDoesNotExistAsync(artifactsDir);
+ await createDirIfDoesNotExistAsync(artifactsDir);
expect(fsWrapper.doesPathExistSync(artifactsDir)).to.be.true();
fsWrapper.rmdirSync(artifactsDir);
expect(fsWrapper.doesPathExistSync(artifactsDir)).to.be.false();