From 4c0346e0da5995ab2cb924af5d8342d867618274 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Wed, 21 Aug 2024 13:14:20 +0200 Subject: [PATCH] Fix tests after 1598abba --- test/reader.test.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/reader.test.jsx b/test/reader.test.jsx index da73adcf..6142c433 100644 --- a/test/reader.test.jsx +++ b/test/reader.test.jsx @@ -137,7 +137,8 @@ describe('Reader', () => { const iframe = container.querySelector('iframe'); let readerConfig; const mockReader = { - setAnnotations: jest.fn() + setAnnotations: jest.fn(), + unsetAnnotations: jest.fn() }; iframe.contentWindow.createReader = (_rc) => { @@ -190,7 +191,8 @@ describe('Reader', () => { let readerConfig; const mockReader = { - setAnnotations: jest.fn() + setAnnotations: jest.fn(), + unsetAnnotations: jest.fn() }; iframe.contentWindow.createReader = (_rc) => {