From 7b5d0cc4cb3e0bec21b44a75439ff8ac0104da1b Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Thu, 16 May 2024 13:37:17 -0700 Subject: [PATCH] chore: lint fix --- packages/gateway-conformance/src/conformance.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gateway-conformance/src/conformance.spec.ts b/packages/gateway-conformance/src/conformance.spec.ts index c95a625b..97f5ee81 100644 --- a/packages/gateway-conformance/src/conformance.spec.ts +++ b/packages/gateway-conformance/src/conformance.spec.ts @@ -232,7 +232,7 @@ const tests: TestConfig[] = [ } ] -async function getReportDetails (path: string) { +async function getReportDetails (path: string): Promise<{ failureCount: number, successCount: number, successRate: number }> { let failureCount = 0 let successCount = 0 @@ -321,7 +321,7 @@ describe('@helia/verified-fetch - gateway conformance', function () { tests.forEach(({ name, spec, skip, run, successRate: minSuccessRate }) => { const log = logger.forComponent(name) - const expectedSuccessRate = process.env.SUCCESS_RATE ? Number.parseFloat(process.env.SUCCESS_RATE) : minSuccessRate + const expectedSuccessRate = process.env.SUCCESS_RATE != null ? Number.parseFloat(process.env.SUCCESS_RATE) : minSuccessRate it(`${name} has a success rate of at least ${expectedSuccessRate}%`, async function () { const { stderr, stdout } = await execa(binaryPath, getConformanceTestArgs(name,