File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44const Leo = require ( '../dist' ) ;
55
66beforeAll ( ( ) => {
7- HTMLCanvasElement . prototype . getContext = jest . fn ( ( ) => ( {
8- drawImage : jest . fn ( ) ,
9- fillRect : jest . fn ( ) ,
10- clearRect : jest . fn ( ) ,
11- getImageData : jest . fn ( ) ,
12- putImageData : jest . fn ( ) ,
13- createImageData : jest . fn ( ) ,
14- setTransform : jest . fn ( ) ,
15- drawFocusIfNeeded : jest . fn ( ) ,
16- createLinearGradient : jest . fn ( ) ,
17- createRadialGradient : jest . fn ( ) ,
18- createPattern : jest . fn ( ) ,
19- measureText : jest . fn ( ( ) => ( { width : 0 } ) ) ,
20- transform : jest . fn ( ) ,
21- rotate : jest . fn ( ) ,
22- scale : jest . fn ( ) ,
23- translate : jest . fn ( ) ,
24- transform : jest . fn ( ) ,
25- fillText : jest . fn ( ) ,
26- strokeText : jest . fn ( ) ,
27- bezierCurveTo : jest . fn ( ) ,
28- moveTo : jest . fn ( ) ,
29- lineTo : jest . fn ( ) ,
30- closePath : jest . fn ( ) ,
31- stroke : jest . fn ( ) ,
32- strokeRect : jest . fn ( ) ,
33- fill : jest . fn ( ) ,
34- beginPath : jest . fn ( ) ,
35- save : jest . fn ( ) ,
36- restore : jest . fn ( ) ,
37- arc : jest . fn ( ) ,
38- } ) ) ;
7+ HTMLCanvasElement . prototype . getContext = jest . fn ( ( ) => ( { } ) ) ;
398
409 HTMLCanvasElement . prototype . toDataURL = jest . fn ( ( ) => 'data:image/png;base64,' ) ;
4110
Original file line number Diff line number Diff line change 44const Leo = require ( '../dist' ) ;
55
66beforeAll ( ( ) => {
7- HTMLCanvasElement . prototype . getContext = jest . fn ( ( ) => ( {
8- drawImage : jest . fn ( ) ,
9- fillRect : jest . fn ( ) ,
10- clearRect : jest . fn ( ) ,
11- getImageData : jest . fn ( ) ,
12- putImageData : jest . fn ( ) ,
13- createImageData : jest . fn ( ) ,
14- setTransform : jest . fn ( ) ,
15- drawFocusIfNeeded : jest . fn ( ) ,
16- createLinearGradient : jest . fn ( ) ,
17- createRadialGradient : jest . fn ( ) ,
18- createPattern : jest . fn ( ) ,
19- measureText : jest . fn ( ( ) => ( { width : 0 } ) ) ,
20- transform : jest . fn ( ) ,
21- rotate : jest . fn ( ) ,
22- scale : jest . fn ( ) ,
23- translate : jest . fn ( ) ,
24- transform : jest . fn ( ) ,
25- fillText : jest . fn ( ) ,
26- strokeText : jest . fn ( ) ,
27- bezierCurveTo : jest . fn ( ) ,
28- moveTo : jest . fn ( ) ,
29- lineTo : jest . fn ( ) ,
30- closePath : jest . fn ( ) ,
31- stroke : jest . fn ( ) ,
32- strokeRect : jest . fn ( ) ,
33- fill : jest . fn ( ) ,
34- beginPath : jest . fn ( ) ,
35- save : jest . fn ( ) ,
36- restore : jest . fn ( ) ,
37- arc : jest . fn ( ) ,
38- } ) ) ;
7+ HTMLCanvasElement . prototype . getContext = jest . fn ( ( ) => ( { } ) ) ;
398
409 HTMLCanvasElement . prototype . toDataURL = jest . fn ( ( ) => 'data:image/png;base64,' ) ;
4110
You can’t perform that action at this time.
0 commit comments