From fe7c4dfb8c4323e371e15cf11c3037a25ab387e2 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Fri, 21 Oct 2022 08:09:23 -0700 Subject: [PATCH] Fix copy & paste mistake: toBlob -> toDataURL (#101) --- 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; }