Skip to content

Commit 8f98e93

Browse files
committed
Updated unit test.
Requires latest Textadept source to check for metafields written to.
1 parent 200c0a9 commit 8f98e93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init_test.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,9 @@ test('file_diff.goto_change should notify when there are no more changes', funct
430430
view:split(true)
431431
buffer.new()
432432
file_diff.start('-', '-')
433+
local _<close> = test.disable_metafield(ui, 'statusbar_text')
433434

434435
file_diff.goto_change(true)
435436

436-
-- TODO: how to test statusbar was written to? Cannot mock it.
437+
test.assert_equal(ui.statusbar_text, _L['No more differences'])
437438
end)

0 commit comments

Comments
 (0)