Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 498c474

Browse files
committed
Add event listener functions for compatibility with rxjs 5
.fromEvent() is throwing an error because the mock isn't compatible with the event listener type. If we keep running into changes in this, we might want to consider changing the implementation. Unless and until we get to that point, this should work to fix the tests.
1 parent 6386186 commit 498c474

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/components/inputs/signature/signature.tests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ describe('SignatureComponent', () => {
9393
let canvas: ICanvasMock;
9494

9595
beforeEach(() => {
96-
canvas = {
96+
canvas = <any>{
9797
jSignature: sinon.spy(),
98+
addEventListener: () => null,
99+
removeEventListener: () => null,
98100
};
99101
(signature as any)._canvas = canvas;
100102
signature.rendering = true;

0 commit comments

Comments
 (0)