tests: cleanup filemanager tests
Fix error trace: "FileManager instance mismatch".
This commit is contained in:
1 parent
6956b6c560
commit
cee0fef497
1 file changed
+3
-3
@@ -14,14 +14,14 @@ describe("FileManager module", function()
|
||||
util = require("ffi/util")
|
||||
end)
|
||||
it("should show file manager", function()
|
||||
UIManager:quit()
|
||||
local filemanager = FileManager:new{
|
||||
dimen = Screen:getSize(),
|
||||
root_path = "spec/front/unit/data",
|
||||
}
|
||||
UIManager:show(filemanager)
|
||||
UIManager:scheduleIn(1, function() filemanager:onClose() end)
|
||||
UIManager:run()
|
||||
fastforward_ui_events()
|
||||
filemanager:onClose()
|
||||
UIManager:quit()
|
||||
end)
|
||||
it("should show error on non-existent file", function()
|
||||
local filemanager = FileManager:new{
|
||||
|
||||
Reference in new issue
Block a user