mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
Unbreak FileManager test after #7582
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user