Skip to content

Commit

Permalink
Fix copy & paste mistake: toBlob -> toDataURL (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne committed Oct 21, 2022
1 parent 0a18832 commit fe7c4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mock/prototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit fe7c4df

Please sign in to comment.