@@ -26,7 +26,8 @@ describe("State API", () => {
2626 expect ( stateApi . isReachEnd ) . to . be . false ;
2727 expect ( stateApi . totalPanelCount ) . to . equal ( 3 ) ;
2828 expect ( stateApi . currentPanelIndex ) . to . equal ( 0 ) ;
29- expect ( stateApi . progress ) . to . equal ( 0 ) ;
29+ expect ( stateApi . indexProgress ) . to . equal ( 0 ) ;
30+ expect ( stateApi . scrollProgress ) . to . equal ( 0 ) ;
3031 } ) ;
3132 } ) ;
3233
@@ -39,7 +40,8 @@ describe("State API", () => {
3940 expect ( stateApi . isReachStart ) . to . be . false ;
4041 expect ( stateApi . isReachEnd ) . to . be . false ;
4142 expect ( stateApi . currentPanelIndex ) . to . equal ( 1 ) ;
42- expect ( stateApi . progress ) . to . equal ( 50 ) ;
43+ expect ( stateApi . indexProgress ) . to . equal ( 50 ) ;
44+ expect ( stateApi . scrollProgress ) . to . equal ( 50 ) ;
4345 } ) ;
4446
4547 it ( "should update state when moving to last panel" , async ( ) => {
@@ -50,7 +52,7 @@ describe("State API", () => {
5052 expect ( stateApi . isReachStart ) . to . be . false ;
5153 expect ( stateApi . isReachEnd ) . to . be . true ;
5254 expect ( stateApi . currentPanelIndex ) . to . equal ( 2 ) ;
53- expect ( stateApi . progress ) . to . equal ( 100 ) ;
55+ expect ( stateApi . indexProgress ) . to . equal ( 100 ) ;
5456 } ) ;
5557
5658 it ( "should update state when adding panels" , async ( ) => {
@@ -75,7 +77,7 @@ describe("State API", () => {
7577 await promise ;
7678
7779 expect ( stateApi . currentPanelIndex ) . to . equal ( 1 ) ;
78- expect ( stateApi . progress ) . to . equal ( 50 ) ;
80+ expect ( stateApi . indexProgress ) . to . equal ( 50 ) ;
7981 } ) ;
8082 } ) ;
8183} ) ;
0 commit comments