From 43756ad9c172dd0e65fae94fe11b59eaeb32f5c0 Mon Sep 17 00:00:00 2001 From: oshinongit Date: Wed, 4 Sep 2024 15:36:31 +0200 Subject: [PATCH] fix: broken tests --- tests/aws-pipeline.test.ts | 2 +- tests/vmaf.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/aws-pipeline.test.ts b/tests/aws-pipeline.test.ts index b9c4a51..243223e 100644 --- a/tests/aws-pipeline.test.ts +++ b/tests/aws-pipeline.test.ts @@ -155,7 +155,7 @@ describe('AWSPipeline', () => { 's3Dir' ); - expect(pipeline.fileExists).toReturnTimes(2); + expect(pipeline.fileExists).toReturnTimes(3); expect(mcMock.send).toHaveBeenCalled; }); diff --git a/tests/vmaf.test.ts b/tests/vmaf.test.ts index 1a6ecc8..7744542 100644 --- a/tests/vmaf.test.ts +++ b/tests/vmaf.test.ts @@ -3,6 +3,6 @@ import getAnalysisData from '../src/get-analysis-data'; describe('vmaf', () => { it('Gets VMAF score from local file', async () => { const vmaf = await getAnalysisData('tests/resources/vmaf.json'); - expect(vmaf.vmafList[0].vmaf).toEqual(85.628489); + expect(vmaf.vmafList[0].vmafScores.vmaf).toEqual(85.628489); }); });