File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,24 @@ describe('createURL', () => {
82
82
expect ( url . href ) . toBe ( 'http://sign.document.com/123456?debug=true' )
83
83
} )
84
84
85
+ it ( 'should able to set user to scroll to spesific page using `needScrollTo`' , ( ) => {
86
+ const url = createURL ( {
87
+ url : 'http://sign.document.com/123456' ,
88
+ needScrollTo : 5 ,
89
+ } )
90
+
91
+ expect ( url . href ) . toBe ( 'http://sign.document.com/123456?need_scrollto=5' )
92
+ } )
93
+
94
+ it ( 'should able to set user to scroll to last page using `needScrollTo` set to `last`' , ( ) => {
95
+ const url = createURL ( {
96
+ url : 'http://sign.document.com/123456' ,
97
+ needScrollTo : 'last' ,
98
+ } )
99
+
100
+ expect ( url . href ) . toBe ( 'http://sign.document.com/123456?need_scrollto=last' )
101
+ } )
102
+
85
103
it ( 'should able to set invisible signature with `visibility` set to false' , ( ) => {
86
104
const url = createURL ( {
87
105
url : 'http://sign.document.com/123456' ,
You can’t perform that action at this time.
0 commit comments