From c8ad6774d7397ae324d7873b6d18d569940086aa Mon Sep 17 00:00:00 2001 From: boxofyellow <54955040+boxofyellow@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:49:34 -0800 Subject: [PATCH] after running npm run all --- __tests__/ghcr-client.test.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/__tests__/ghcr-client.test.ts b/__tests__/ghcr-client.test.ts index 4e73f34..19ff95d 100644 --- a/__tests__/ghcr-client.test.ts +++ b/__tests__/ghcr-client.test.ts @@ -488,7 +488,9 @@ describe('publishOCIArtifact', () => { modifiedTestManifest.layers[0].mediaType = 'application/json' // just checking to make sure we are not changing the shared object - expect(modifiedTestManifest.layers[0].mediaType).not.toEqual(testManifest.layers[0].mediaType) + expect(modifiedTestManifest.layers[0].mediaType).not.toEqual( + testManifest.layers[0].mediaType + ) await expect( publishOCIArtifact( @@ -538,8 +540,8 @@ function validateRequestConfig(status: number, url: string, config: any): void { } } -function cloneLayers(layers: ociContainer.Layer[]) : ociContainer.Layer[] { - const result : ociContainer.Layer[] = []; - layers.forEach(val => result.push({ ... val })) // this is _NOT_ a deep clone +function cloneLayers(layers: ociContainer.Layer[]): ociContainer.Layer[] { + const result: ociContainer.Layer[] = [] + layers.forEach(val => result.push({ ...val })) // this is _NOT_ a deep clone return result -} \ No newline at end of file +}