@@ -150,7 +150,7 @@ describe('Popup', () => {
150150 assertInBody ( '.ui.popup.visible' , false )
151151 } )
152152
153- it ( 'is called with (e, props) when scroll' , ( ) => {
153+ it ( 'is called on scroll' , ( ) => {
154154 const onClose = sandbox . spy ( )
155155
156156 wrapperMount ( < Popup content = 'foo' hideOnScroll onClose = { onClose } trigger = { trigger } /> )
@@ -159,7 +159,7 @@ describe('Popup', () => {
159159 domEvent . scroll ( window )
160160
161161 onClose . should . have . been . calledOnce ( )
162- onClose . should . have . been . calledWithMatch ( { } , { content : 'foo' , onClose, trigger } )
162+ onClose . should . have . been . calledWithMatch ( { } , { content : 'foo' , onClose, trigger } , false )
163163 } )
164164
165165 it ( 'not hide on scroll from inside a popup' , ( ) => {
@@ -178,6 +178,7 @@ describe('Popup', () => {
178178
179179 domEvent . scroll ( window )
180180 onClose . should . have . been . calledOnce ( )
181+ onClose . should . have . been . calledWithMatch ( { } , { } , false )
181182 } )
182183 } )
183184
@@ -222,6 +223,7 @@ describe('Popup', () => {
222223
223224 domEvent . click ( 'body' )
224225 onClose . should . have . been . calledOnce ( )
226+ onClose . should . have . been . calledWithMatch ( { } , { } , false )
225227 } )
226228
227229 it ( 'is called when pressing escape' , ( ) => {
@@ -230,6 +232,7 @@ describe('Popup', () => {
230232
231233 domEvent . keyDown ( document , { key : 'Escape' } )
232234 onClose . should . have . been . calledOnce ( )
235+ onClose . should . have . been . calledWithMatch ( { } , { } , false )
233236 } )
234237
235238 it ( 'is not called when the open prop changes to false' , ( ) => {
@@ -252,7 +255,7 @@ describe('Popup', () => {
252255
253256 wrapper . find ( '#trigger' ) . simulate ( 'click' )
254257 onOpen . should . have . been . calledOnce ( )
255- onOpen . should . have . been . calledWithMatch ( { } , { open : true } )
258+ onOpen . should . have . been . calledWithMatch ( { } , { } , true )
256259 } )
257260 } )
258261
@@ -267,7 +270,7 @@ describe('Popup', () => {
267270
268271 domEvent . click ( document . body )
269272 onClose . should . have . been . called ( )
270- onClose . should . have . been . calledWithMatch ( { } , { open : false } )
273+ onClose . should . have . been . calledWithMatch ( { } , { } , false )
271274 } )
272275 } )
273276
0 commit comments