File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ describe("pat-scroll-box", function () {
103103 // scroll-up and scroll-down are not cleared.
104104
105105 // Still there...
106- await utils . timeout ( custom_timeout / 2 ) ;
106+ await utils . timeout ( 1 ) ;
107107 expect ( el . classList ) . toContain ( "scrolling-up" ) ;
108108 // Now gone
109- await utils . timeout ( custom_timeout / 2 + 1 ) ;
109+ await utils . timeout ( custom_timeout + 1 ) ;
110110 expect ( el . classList ) . not . toContain ( "scrolling-up" ) ;
111111
112112 el . scrollTop = 100 ;
@@ -121,10 +121,10 @@ describe("pat-scroll-box", function () {
121121
122122 // Test for clearing the scrolling classes after a scroll stop
123123 // Still there...
124- await utils . timeout ( custom_timeout / 2 ) ;
124+ await utils . timeout ( 1 ) ;
125125 expect ( el . classList ) . toContain ( "scrolling-down" ) ;
126126 // Now gone
127- await utils . timeout ( custom_timeout / 2 + 1 ) ;
127+ await utils . timeout ( custom_timeout + 1 ) ;
128128 expect ( el . classList ) . not . toContain ( "scrolling-down" ) ;
129129 } ) ;
130130} ) ;
You can’t perform that action at this time.
0 commit comments