Skip to content

Commit 1307044

Browse files
committed
Fix failing tests
1 parent e924496 commit 1307044

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

test/Rive.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jest.mock('@rive-app/canvas', () => ({
66
Rive: jest.fn().mockImplementation(() => ({
77
on: jest.fn(),
88
stop: jest.fn(),
9+
cleanup: jest.fn(),
910
})),
1011
Layout: jest.fn(),
1112
Fit: {

test/useRive.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ describe('useRive', () => {
3838
stop: jest.fn(),
3939
stopRendering: jest.fn(),
4040
startRendering: jest.fn(),
41+
cleanup: jest.fn(),
42+
resizeToCanvas: jest.fn(),
4143
};
4244
});
4345

0 commit comments

Comments
 (0)