diff --git a/components/higher-order/with-global-events/test/listener.js b/components/higher-order/with-global-events/test/listener.js index 8235cd819c806a..53f5db9a3298de 100644 --- a/components/higher-order/with-global-events/test/listener.js +++ b/components/higher-order/with-global-events/test/listener.js @@ -70,5 +70,18 @@ describe( 'Listener', () => { expect( handler.handleEvent ).toHaveBeenCalledWith( event ); } ); + + it( 'calls all added handlers', () => { + const handler = createHandler(); + listener.add( 'resize', handler ); + listener.add( 'resize', handler ); + listener.add( 'resize', handler ); + + const event = { type: 'resize' }; + + listener.handleEvent( event ); + + expect( handler.handleEvent ).toHaveBeenCalledTimes( 3 ); + } ); } ); } );