Unbreak FileManager test after #7582

This commit is contained in:
NiLuJe
2021-04-29 20:26:33 +02:00
parent b24ecf35d4
commit c9ba30a870

View File

@@ -29,7 +29,7 @@ describe("FileManager module", function()
local old_show = UIManager.show
local tmp_fn = "/abc/123/test/foo.bar.baz.tmp.epub.pdf"
UIManager.show = function(self, w)
assert.Equals(w.text, "File "..tmp_fn.." not found")
assert.Equals(w.text, "File not found:\n"..tmp_fn)
end
assert.is_nil(lfs.attributes(tmp_fn))
filemanager:deleteFile(tmp_fn)
@@ -58,7 +58,7 @@ describe("FileManager module", function()
assert.is_not_nil(lfs.attributes(tmp_history))
UIManager.show = function(self, w)
assert.Equals(w.text, "Deleted "..tmp_fn)
assert.Equals(w.text, "Deleted file:\n"..tmp_fn)
end
filemanager:deleteFile(tmp_fn)
UIManager.show = old_show
@@ -93,7 +93,7 @@ describe("FileManager module", function()
assert.is_not_nil(lfs.attributes(tmp_history))
UIManager.show = function(self, w)
assert.Equals(w.text, "Deleted "..tmp_fn)
assert.Equals(w.text, "Deleted file:\n"..tmp_fn)
end
filemanager:deleteFile(tmp_fn)
UIManager.show = old_show