@@ -249,17 +249,17 @@ describe('FileActions creation', () => {
249249 const node = { } as Node
250250
251251 expect ( action . id ) . toBe ( 'test' )
252- expect ( action . displayName ( { view, folder , nodes : [ ] , content : [ ] } ) ) . toBe ( 'Test' )
253- expect ( action . title ?.( { view, folder , nodes : [ ] , content : [ ] } ) ) . toBe ( 'Test title' )
254- expect ( action . iconSvgInline ( { view, folder , nodes : [ ] , content : [ ] } ) ) . toBe ( '<svg></svg>' )
252+ expect ( action . displayName ( { view, nodes : [ ] } ) ) . toBe ( 'Test' )
253+ expect ( action . title ?.( { view, nodes : [ ] } ) ) . toBe ( 'Test title' )
254+ expect ( action . iconSvgInline ( { view, nodes : [ ] } ) ) . toBe ( '<svg></svg>' )
255255 await expect ( action . exec ( { view, folder, nodes : [ node ] , content : [ ] } ) ) . resolves . toBe ( true )
256256 await expect ( action . execBatch ?.( { view, folder, nodes : [ ] , content : [ ] } ) ) . resolves . toStrictEqual ( [ true ] )
257257 expect ( action . enabled ?.( { view, folder, nodes : [ ] , content : [ ] } ) ) . toBe ( true )
258258 expect ( action . order ) . toBe ( 100 )
259259 expect ( action . parent ) . toBe ( '123' )
260260 expect ( action . destructive ) . toBe ( true )
261261 expect ( action . default ) . toBe ( DefaultType . DEFAULT )
262- expect ( action . inline ?.( { view, folder , nodes : [ ] , content : [ ] } ) ) . toBe ( true )
263- expect ( ( await action . renderInline ?.( { view, folder , nodes : [ ] , content : [ ] } ) ) ?. outerHTML ) . toBe ( '<span>test</span>' )
262+ expect ( action . inline ?.( { view, nodes : [ ] } ) ) . toBe ( true )
263+ expect ( ( await action . renderInline ?.( { view, nodes : [ ] } ) ) ?. outerHTML ) . toBe ( '<span>test</span>' )
264264 } )
265265} )
0 commit comments