Skip to content

Commit c8fc83c

Browse files
committed
test(browser): satisfy download fixture lint
1 parent dee0888 commit c8fc83c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extensions/browser/src/browser/pw-tools-core.waits-next-download-saves-it.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,11 @@ describe("pw-tools-core", () => {
178178
suggestedFilename: () => string;
179179
saveAs: (outPath: string) => Promise<void>;
180180
};
181-
let download: DownloadFixture;
182181
const saveAs = vi.fn(async function (this: DownloadFixture, outPath: string) {
183182
expect(this).toBe(download);
184183
await fs.writeFile(outPath, "file-content", "utf8");
185184
});
186-
download = {
185+
const download: DownloadFixture = {
187186
url: () => "https://example.com/file.bin",
188187
suggestedFilename: () => "file.bin",
189188
saveAs,

0 commit comments

Comments
 (0)