Files
radicle-explorer/src/polyfills/canvas.js
T
Sebastian Martinez 286cb1cd21 Improve testing suite
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-03-24 15:05:15 +01:00

8 lines
207 B
JavaScript

// A simple mock for some HTMLCanvasElement functions to run in a node env.
HTMLCanvasElement.prototype.getContext = () => ({
fillRect: () => null
});
HTMLCanvasElement.prototype.toDataURL = () => null;