From bbf3214bb1cc79842fed1ad14396275e0e7ce876 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 18 Aug 2022 09:11:42 -0700 Subject: [PATCH] Fix copy & paste mistake: toBlob -> toDataURL --- src/mock/prototype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mock/prototype.js b/src/mock/prototype.js index 2b10695..062ea39 100644 --- a/src/mock/prototype.js +++ b/src/mock/prototype.js @@ -106,7 +106,7 @@ export default function mockPrototype() { if (!jest.isMockFunction(HTMLCanvasElement.prototype.toDataURL)) { toDataURLOverride.internal = HTMLCanvasElement.prototype.toDataURL; } else { - toDataURLOverride.internal = HTMLCanvasElement.prototype.toBlob.internal; + toDataURLOverride.internal = HTMLCanvasElement.prototype.toDataURL.internal; } HTMLCanvasElement.prototype.toDataURL = toDataURLOverride; }