Fix file size on ubuntu and test name

This commit is contained in:
Josh Gross 2019-11-13 15:57:48 -05:00
parent 8041787e97
commit 430e461169
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,5 @@
import * as core from "@actions/core"; import * as core from "@actions/core";
import * as fs from "fs";
import * as os from "os"; import * as os from "os";
import * as path from "path"; import * as path from "path";
@ -18,7 +19,7 @@ test("getArchiveFileSize returns file size", () => {
const size = actionUtils.getArchiveFileSize(filePath); const size = actionUtils.getArchiveFileSize(filePath);
expect(size).toBe(13); expect(size).toBe(11);
}); });
test("isExactKeyMatch with undefined cache entry returns false", () => { test("isExactKeyMatch with undefined cache entry returns false", () => {
@ -28,7 +29,7 @@ test("isExactKeyMatch with undefined cache entry returns false", () => {
expect(actionUtils.isExactKeyMatch(key, cacheEntry)).toBe(false); expect(actionUtils.isExactKeyMatch(key, cacheEntry)).toBe(false);
}); });
test("isExactKeyMatch with undefined cache entry key returns false", () => { test("isExactKeyMatch with empty cache entry returns false", () => {
const key = "linux-rust"; const key = "linux-rust";
const cacheEntry: ArtifactCacheEntry = {}; const cacheEntry: ArtifactCacheEntry = {};