From 62e83e31e5b662eb8c521384e059ef6a3aa883a1 Mon Sep 17 00:00:00 2001 From: Kyle Mellander Date: Mon, 13 Apr 2020 14:00:43 -0700 Subject: [PATCH] update LinkService instantiation in AnnotationLayer.spec This is done to match the need to manually set the eventBus on a LinkService --- src/Page/AnnotationLayer.spec.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Page/AnnotationLayer.spec.jsx b/src/Page/AnnotationLayer.spec.jsx index 73604258b..156d13410 100644 --- a/src/Page/AnnotationLayer.spec.jsx +++ b/src/Page/AnnotationLayer.spec.jsx @@ -11,13 +11,14 @@ import failingPage from '../../__mocks__/_failing_page'; import { loadPDF, makeAsyncCallback, muteConsole, restoreConsole, } from '../../test-utils'; +import eventBus from '../eventBus'; const pdfFile = loadPDF('./__mocks__/_pdf.pdf'); /* eslint-disable comma-dangle */ describe('AnnotationLayer', () => { - const linkService = new LinkService(); + const linkService = new LinkService({ eventBus }); // Loaded page let page;