From 0d82bad11ec1338e24e9d9cdb663aadb1fa30e96 Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Sat, 16 Nov 2024 10:35:05 +0200 Subject: [PATCH] fix: karma/jasmine deprecations --- karma.conf.js | 2 +- test/specs/zoom.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 714dd47a..b81198e1 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -33,7 +33,7 @@ module.exports = function(karma) { client: { jasmine: { - failFast: !!karma.autoWatch + stopOnSpecFailure: !!karma.autoWatch } }, diff --git a/test/specs/zoom.spec.js b/test/specs/zoom.spec.js index 6656aa59..615bc6a4 100644 --- a/test/specs/zoom.spec.js +++ b/test/specs/zoom.spec.js @@ -778,7 +778,7 @@ describe('zoom', function() { mode: 'xy', onZoomStart: startSpy, onZoom: zoomSpy, - onZoomComplete: done + onZoomComplete: () => done() } } }