Skip to content

Commit e145e4d

Browse files
committed
update/add test
1 parent 5fb20e3 commit e145e4d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/replay-canvas/test/canvas.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,13 @@ it('initializes with quality option and manual snapshot', () => {
3030
type: 'image/webp',
3131
quality: 0.25,
3232
},
33+
maxCanvasSize: [1280, 1280],
3334
});
3435
});
36+
37+
it('enforces a max canvas size', () => {
38+
const rc = _replayCanvasIntegration({ enableManualSnapshot: true, quality: 'low', maxCanvasSize: [2000, 2000]});
39+
40+
expect(rc.getOptions().maxCanvasSize).toEqual([1280, 1280]);
41+
});
42+

0 commit comments

Comments
 (0)