File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,6 +223,28 @@ describe('useSignStore', () => {
223223 } )
224224 } )
225225
226+ describe ( 'mounted state' , ( ) => {
227+ it ( 'marks the sign interface as ready when a file is selected for signing' , ( ) => {
228+ const store = useSignStore ( )
229+
230+ expect ( store . mounted ) . toBe ( false )
231+
232+ store . setFileToSign ( createDocument ( ) )
233+
234+ expect ( store . mounted ) . toBe ( true )
235+ } )
236+
237+ it ( 'clears the mounted state when resetting the sign store' , ( ) => {
238+ const store = useSignStore ( )
239+
240+ store . setFileToSign ( createDocument ( ) )
241+ store . reset ( )
242+
243+ expect ( store . mounted ) . toBe ( false )
244+ expect ( store . document ) . toBeUndefined ( )
245+ } )
246+ } )
247+
226248 describe ( 'buildSignUrl' , ( ) => {
227249 it ( 'uses /sign/uuid endpoint when signRequestUuid is provided' , ( ) => {
228250 const store = useSignStore ( )
You can’t perform that action at this time.
0 commit comments