Skip to content

Commit 51abd73

Browse files
committed
Fix test
1 parent a42481f commit 51abd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/main.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ test("download link triggers file download", async () => {
169169
document.body.appendChild(a);
170170
jest.spyOn(document, "createElement").mockImplementation((tag) => {
171171
if (tag === "a") return a;
172-
return originalCreateElement.call(document, tag);
172+
return document.createElement(tag);
173173
});
174174
const clickSpy = jest.spyOn(a, "click");
175175

0 commit comments

Comments
 (0)