@@ -40,8 +40,8 @@ describe('FileListActions init', () => {
4040 const testAction = mockAction ( 'test' )
4141
4242 expect ( testAction . id ) . toBe ( 'test' )
43- expect ( testAction . displayName ( { view, folder } ) ) . toBe ( 'Test' )
44- expect ( testAction . iconSvgInline ! ( { view, folder } ) ) . toBe ( '<svg></svg>' )
43+ expect ( testAction . displayName ( { view, folder, contents : [ ] } ) ) . toBe ( 'Test' )
44+ expect ( testAction . iconSvgInline ! ( { view, folder, contents : [ ] } ) ) . toBe ( '<svg></svg>' )
4545
4646 registerFileListAction ( testAction )
4747 expect ( actions ) . toHaveLength ( 1 )
@@ -158,10 +158,10 @@ describe('FileListAction creation', () => {
158158 } )
159159
160160 expect ( testAction . id ) . toBe ( 'test' )
161- expect ( testAction . displayName ( { view, folder } ) ) . toBe ( 'Test' )
162- expect ( testAction . iconSvgInline ! ( { view, folder } ) ) . toBe ( '<svg></svg>' )
161+ expect ( testAction . displayName ( { view, folder, contents : [ ] } ) ) . toBe ( 'Test' )
162+ expect ( testAction . iconSvgInline ! ( { view, folder, contents : [ ] } ) ) . toBe ( '<svg></svg>' )
163163 expect ( testAction . order ) . toBe ( 0 )
164- expect ( testAction . enabled ?.( { view, folder } ) ) . toBe ( true )
165- await expect ( testAction . exec ( { view, folder, nodes : [ ] , content : [ ] } ) ) . resolves . toBe ( undefined )
164+ expect ( testAction . enabled ?.( { view, folder, contents : [ ] } ) ) . toBe ( true )
165+ await expect ( testAction . exec ( { view, folder, contents : [ ] } ) ) . resolves . toBe ( undefined )
166166 } )
167167} )
0 commit comments