From 1f0ba3bb861b01bf9bb68cd34fb164d66ce5a9ad Mon Sep 17 00:00:00 2001 From: Luiz Filipe Machado Barni Date: Fri, 31 Aug 2018 10:57:54 -0300 Subject: [PATCH] fix comparison lint error --- types/swiper/swiper-tests.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }