diff --git a/types/swiper/swiper-tests.ts b/types/swiper/swiper-tests.ts index b7a4e28200..1de04e7b2e 100644 --- a/types/swiper/swiper-tests.ts +++ b/types/swiper/swiper-tests.ts @@ -670,7 +670,9 @@ function zoom() { swiper.zoom.out(); swiper.zoom.disable(); - swiper.zoom.enabled === false; + + if (swiper.zoom.enabled) throw new Error('Zoom should be disabled!'); + swiper.zoom.enable(); swiper.zoom.in(); }