From 93a7e68cb5e55e059b0dbeb86675ad253d527df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Poujade?= <lois.poujade@tetras-libre.fr> Date: Tue, 7 Feb 2023 15:57:08 +0100 Subject: [PATCH] Disable broken test The previous commit explicitly enable both selectors at the same time --- __tests__/src/lib/CanvasAnnotationDisplay.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/src/lib/CanvasAnnotationDisplay.test.js b/__tests__/src/lib/CanvasAnnotationDisplay.test.js index 721ef34a6..3174e0738 100644 --- a/__tests__/src/lib/CanvasAnnotationDisplay.test.js +++ b/__tests__/src/lib/CanvasAnnotationDisplay.test.js @@ -32,7 +32,7 @@ describe('CanvasAnnotationDisplay', () => { subject.fragmentContext = jest.fn(); subject.toContext(context); expect(subject.svgContext).toHaveBeenCalled(); - expect(subject.fragmentContext).not.toHaveBeenCalled(); + // expect(subject.fragmentContext).not.toHaveBeenCalled(); }); it('selects fragmentSelector if present and if no svg is present', () => { const context = { @@ -44,7 +44,7 @@ describe('CanvasAnnotationDisplay', () => { subject.svgContext = jest.fn(); subject.fragmentContext = jest.fn(); subject.toContext(context); - expect(subject.svgContext).not.toHaveBeenCalled(); + // expect(subject.svgContext).not.toHaveBeenCalled(); expect(subject.fragmentContext).toHaveBeenCalled(); }); it('ignores annotations without selectors', () => { -- GitLab