From 85427a84df9954c5849ea471f549549bc1486aec Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Thu, 16 Aug 2018 11:17:57 -0700 Subject: clarify variable names for artifact mod times --- packages/sol-compiler/test/compiler_test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'packages/sol-compiler') 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 () => { -- cgit v1.2.3