@@ -158,18 +158,18 @@ describe('FileDiffView:', function()
158158 setup_view_mocks ()
159159 end )
160160
161- describe (' _reconcile ' , function ()
161+ describe (' _refresh_diff ' , function ()
162162 it (' should return false when diff_component is nil' , function ()
163163 view ._diff_component = nil
164- local result = view :_reconcile ()
164+ local result = view :_refresh_diff ()
165165 assert .is_false (result )
166166 end )
167167
168168 it (' should return false when diff_component is invalid' , function ()
169169 mock_diff .is_valid = function ()
170170 return false
171171 end
172- local result = view :_reconcile ()
172+ local result = view :_refresh_diff ()
173173 assert .is_false (result )
174174 end )
175175
@@ -189,7 +189,7 @@ describe('FileDiffView:', function()
189189 props_set = props
190190 end
191191
192- view :_reconcile ()
192+ view :_refresh_diff ()
193193
194194 assert .is_true (refresh_called )
195195 assert .is_not_nil (props_set )
@@ -201,7 +201,7 @@ describe('FileDiffView:', function()
201201 view ._refresh_diff_data = function ()
202202 return nil
203203 end
204- local result = view :_reconcile ()
204+ local result = view :_refresh_diff ()
205205 assert .is_false (result )
206206 end )
207207
@@ -218,7 +218,7 @@ describe('FileDiffView:', function()
218218 moved_to = idx
219219 end
220220
221- view :_reconcile ({ hunk_index = 3 })
221+ view :_refresh_diff ({ hunk_index = 3 })
222222
223223 eq (3 , moved_to )
224224 end )
@@ -236,7 +236,7 @@ describe('FileDiffView:', function()
236236 move_called = true
237237 end
238238
239- view :_reconcile ()
239+ view :_refresh_diff ()
240240
241241 assert .is_false (move_called )
242242 end )
@@ -250,15 +250,15 @@ describe('FileDiffView:', function()
250250 }
251251 end
252252
253- local result = view :_reconcile ()
253+ local result = view :_refresh_diff ()
254254 assert .is_true (result )
255255 end )
256256 end )
257257
258258 describe (' toggle_view' , function ()
259- it (' should call _reconcile with hunk_index 1' , function ()
259+ it (' should call _refresh_diff with hunk_index 1' , function ()
260260 local reconcile_opts = nil
261- view ._reconcile = function (_ , opts )
261+ view ._refresh_diff = function (_ , opts )
262262 reconcile_opts = opts
263263 return true
264264 end
@@ -271,7 +271,7 @@ describe('FileDiffView:', function()
271271 end )
272272
273273 it (' should revert is_staged on failure' , function ()
274- view ._reconcile = function ()
274+ view ._refresh_diff = function ()
275275 return false
276276 end
277277 view ._opts .is_staged = false
@@ -282,7 +282,7 @@ describe('FileDiffView:', function()
282282 end )
283283
284284 it (' should keep is_staged flipped on success' , function ()
285- view ._reconcile = function ()
285+ view ._refresh_diff = function ()
286286 return true
287287 end
288288 view ._opts .is_staged = false
@@ -292,9 +292,9 @@ describe('FileDiffView:', function()
292292 assert .is_true (view ._opts .is_staged )
293293 end )
294294
295- it (' should not call _reconcile when filename is nil' , function ()
295+ it (' should not call _refresh_diff when filename is nil' , function ()
296296 local reconcile_called = false
297- view ._reconcile = function ()
297+ view ._refresh_diff = function ()
298298 reconcile_called = true
299299 return true
300300 end
@@ -307,14 +307,14 @@ describe('FileDiffView:', function()
307307 end )
308308
309309 describe (' reset_current' , function ()
310- it (' should call _reconcile after repo:reset' , function ()
310+ it (' should call _refresh_diff after repo:reset' , function ()
311311 local reset_called = false
312312 local reconcile_called = false
313313
314314 mock_repo .reset = function ()
315315 reset_called = true
316316 end
317- view ._reconcile = function ()
317+ view ._refresh_diff = function ()
318318 reconcile_called = true
319319 return true
320320 end
@@ -337,7 +337,7 @@ describe('FileDiffView:', function()
337337 mock_repo .reset = function ()
338338 reset_called = true
339339 end
340- view ._reconcile = function ()
340+ view ._refresh_diff = function ()
341341 reconcile_called = true
342342 return true
343343 end
@@ -348,9 +348,9 @@ describe('FileDiffView:', function()
348348 assert .is_true (reconcile_called )
349349 end )
350350
351- it (' should not call _reconcile when is_staged' , function ()
351+ it (' should not call _refresh_diff when is_staged' , function ()
352352 local reconcile_called = false
353- view ._reconcile = function ()
353+ view ._refresh_diff = function ()
354354 reconcile_called = true
355355 return true
356356 end
0 commit comments