From 8abbcf0a68543ebe171c72e598f9eddce96104a7 Mon Sep 17 00:00:00 2001 From: boxofyellow <54955040+boxofyellow@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:30:07 -0800 Subject: [PATCH] make oci-container.test.ts test data more varied --- __tests__/oci-container.test.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/__tests__/oci-container.test.ts b/__tests__/oci-container.test.ts index ecdad9a..9e5dc7c 100644 --- a/__tests__/oci-container.test.ts +++ b/__tests__/oci-container.test.ts @@ -8,14 +8,14 @@ describe('createActionPackageManigest', () => { const sanitizedRepo = 'test-org-test-repo' const version = '1.0.0' const tarFile: FileMetadata = { - path: '/test/test/test', - sha256: '1234567890', - size: 100 + path: '/test/test/test.tar.gz', + sha256: 'tarSha', + size: 123 } const zipFile: FileMetadata = { - path: '/test/test/test', - sha256: '1234567890', - size: 100 + path: '/test/test/test.zip', + sha256: 'zipSha', + size: 456 } const expectedJSON = `{ @@ -67,13 +67,13 @@ describe('createActionPackageManigest', () => { const manifest = createActionPackageManifest( { path: 'test.tar.gz', - size: 100, - sha256: '1234567890' + size: tarFile.size, + sha256: tarFile.sha256 }, { path: 'test.zip', - size: 100, - sha256: '1234567890' + size: zipFile.size, + sha256: zipFile.sha256 }, repo, version,