From 682d34ed79695d72b17bd4dfffc1614cff9ca20a Mon Sep 17 00:00:00 2001 From: Jade Cabatlao Date: Sat, 7 Sep 2024 19:38:53 +0800 Subject: [PATCH] update progress type in test --- test/browser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/browser.ts b/test/browser.ts index fb67bf50..490faaf4 100644 --- a/test/browser.ts +++ b/test/browser.ts @@ -3,7 +3,7 @@ import busboy from 'busboy'; import express from 'express'; import {chromium, webkit, type Page} from 'playwright'; import type ky from '../source/index.js'; // eslint-disable-line import/no-duplicates -import type {DownloadProgress} from '../source/index.js'; // eslint-disable-line import/no-duplicates +import type {Progress} from '../source/index.js'; // eslint-disable-line import/no-duplicates import {createHttpTestServer, type ExtendedHttpTestServer, type HttpServerOptions} from './helpers/create-http-test-server.js'; import {parseRawBody} from './helpers/parse-body.js'; import {browserTest, defaultBrowsersTest} from './helpers/with-page.js'; @@ -265,7 +265,7 @@ browserTest('onDownloadProgress works', [chromium, webkit], async (t: ExecutionC await addKyScriptToPage(page); const result = await page.evaluate(async (url: string) => { - const data: Array> = []; + const data: Array> = []; const text = await window .ky(url, { onDownloadProgress(progress, chunk) {