aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sol-compiler')
-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 () => {