mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-19 19:46:17 +02:00
Fix file size on ubuntu and test name
This commit is contained in:
parent
8041787e97
commit
430e461169
2 changed files with 4 additions and 3 deletions
|
@ -1 +1 @@
|
|||
hello world
|
||||
hello world
|
|
@ -1,4 +1,5 @@
|
|||
import * as core from "@actions/core";
|
||||
import * as fs from "fs";
|
||||
import * as os from "os";
|
||||
import * as path from "path";
|
||||
|
||||
|
@ -18,7 +19,7 @@ test("getArchiveFileSize returns file size", () => {
|
|||
|
||||
const size = actionUtils.getArchiveFileSize(filePath);
|
||||
|
||||
expect(size).toBe(13);
|
||||
expect(size).toBe(11);
|
||||
});
|
||||
|
||||
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);
|
||||
});
|
||||
|
||||
test("isExactKeyMatch with undefined cache entry key returns false", () => {
|
||||
test("isExactKeyMatch with empty cache entry returns false", () => {
|
||||
const key = "linux-rust";
|
||||
const cacheEntry: ArtifactCacheEntry = {};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue