@@ -100,8 +100,8 @@ describe("BatchFilePermission", () => {
100100 // Find the header that contains our file path and click it
101101 const filePathElement = screen . getByText ( / B u t t o n \. t s x .* e x p o r t c o n s t B u t t o n / )
102102 // The ToolUseBlockHeader is the parent div with the flex class
103- const headerElement = filePathElement . closest ( ' .flex.items-center.select-none' )
104-
103+ const headerElement = filePathElement . closest ( " .flex.items-center.select-none" )
104+
105105 if ( headerElement ) {
106106 fireEvent . click ( headerElement )
107107 }
@@ -140,11 +140,7 @@ describe("BatchFilePermission", () => {
140140 it ( "re-renders when timestamp changes" , ( ) => {
141141 const { rerender } = render (
142142 < TranslationProvider >
143- < BatchFilePermission
144- files = { mockFiles }
145- onPermissionResponse = { mockOnPermissionResponse }
146- ts = { 1000 }
147- />
143+ < BatchFilePermission files = { mockFiles } onPermissionResponse = { mockOnPermissionResponse } ts = { 1000 } />
148144 </ TranslationProvider > ,
149145 )
150146
@@ -154,11 +150,7 @@ describe("BatchFilePermission", () => {
154150 // Re-render with new timestamp
155151 rerender (
156152 < TranslationProvider >
157- < BatchFilePermission
158- files = { mockFiles }
159- onPermissionResponse = { mockOnPermissionResponse }
160- ts = { 2000 }
161- />
153+ < BatchFilePermission files = { mockFiles } onPermissionResponse = { mockOnPermissionResponse } ts = { 2000 } />
162154 </ TranslationProvider > ,
163155 )
164156
@@ -178,8 +170,8 @@ describe("BatchFilePermission", () => {
178170 )
179171
180172 // All files should have external link icons
181- const externalLinkIcons = screen . getAllByText ( ( content , element ) => {
182- return element ?. classList ?. contains ( ' codicon-link-external' ) ?? false
173+ const externalLinkIcons = screen . getAllByText ( ( _content , element ) => {
174+ return element ?. classList ?. contains ( " codicon-link-external" ) ?? false
183175 } )
184176 expect ( externalLinkIcons ) . toHaveLength ( mockFiles . length )
185177 } )
0 commit comments