Skip to content

Commit

Permalink
update progress type in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jadedevin13 committed Sep 7, 2024
1 parent e612cc4 commit 682d34e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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<Array<(DownloadProgress | string)>> = [];
const data: Array<Array<(Progress | string)>> = [];
const text = await window
.ky(url, {
onDownloadProgress(progress, chunk) {
Expand Down

0 comments on commit 682d34e

Please sign in to comment.