aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-17 02:17:57 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-17 02:17:57 +0800
commit85427a84df9954c5849ea471f549549bc1486aec (patch)
tree01fcf271073cddda1b4c3e4cae856622ef0b5e8e
parenta59f18927dc8f59bb69d7dff9d0e5cd7e148129b (diff)
downloaddexon-0x-contracts-85427a84df9954c5849ea471f549549bc1486aec.tar.gz
dexon-0x-contracts-85427a84df9954c5849ea471f549549bc1486aec.tar.zst
dexon-0x-contracts-85427a84df9954c5849ea471f549549bc1486aec.zip
clarify variable names for artifact mod times
-rw-r--r--packages/sol-compiler/test/compiler_test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/sol-compiler/test/compiler_test.ts b/packages/sol-compiler/test/compiler_test.ts
index 7e22ff0ef..003d863e7 100644
--- a/packages/sol-compiler/test/compiler_test.ts
+++ b/packages/sol-compiler/test/compiler_test.ts
@@ -64,7 +64,7 @@ describe('#Compiler', function(): void {
describe('after a successful compilation', () => {
const contract = 'Exchange';
let artifactPath: string;
- let compilationTimestamp: number;
+ let artifactCreatedAtMs: number;
beforeEach(async () => {
compilerOpts.contracts = [contract];
@@ -75,7 +75,7 @@ describe('#Compiler', function(): void {
await new Compiler(compilerOpts).compileAsync();
- compilationTimestamp = (await fsWrapper.statAsync(artifactPath)).mtimeMs;
+ artifactCreatedAtMs = (await fsWrapper.statAsync(artifactPath)).mtimeMs;
});
it('recompilation should update artifact when source has changed', async () => {
// append some meaningless data to the contract, so that its hash
@@ -84,16 +84,16 @@ describe('#Compiler', function(): void {
await new Compiler(compilerOpts).compileAsync();
- const recompilationTimestamp = (await fsWrapper.statAsync(artifactPath)).mtimeMs;
+ const artifactModifiedAtMs = (await fsWrapper.statAsync(artifactPath)).mtimeMs;
- expect(recompilationTimestamp).to.be.greaterThan(compilationTimestamp);
+ expect(artifactModifiedAtMs).to.be.greaterThan(artifactCreatedAtMs);
});
it("recompilation should NOT update artifact when source hasn't changed", async () => {
await new Compiler(compilerOpts).compileAsync();
- const recompilationTimestamp = (await fsWrapper.statAsync(artifactPath)).mtimeMs;
+ const artifactModifiedAtMs = (await fsWrapper.statAsync(artifactPath)).mtimeMs;
- expect(recompilationTimestamp).to.equal(compilationTimestamp);
+ expect(artifactModifiedAtMs).to.equal(artifactCreatedAtMs);
});
});
it('should only compile what was requested', async () => {