2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/spec/unit/filemanager_spec.lua

19 lines
592 B
Lua

require("commonrequire")
local FileManager = require("apps/filemanager/filemanager")
local UIManager = require("ui/uimanager")
local Screen = require("device").screen
local DEBUG = require("dbg")
describe("FileManager module", function()
it("should show file manager", function()
UIManager:quit()
local filemanager = FileManager:new{
dimen = Screen:getSize(),
root_path = "../../test",
}
UIManager:show(filemanager)
UIManager:scheduleIn(1, function() UIManager:close(filemanager) end)
UIManager:run()
end)
end)