mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Tests: emptydir switch from data/dict to history (#8296)
So this test doesn't fail when one has dictionaries locally (history folder is deprecated and should be empty).
This commit is contained in:
@@ -318,7 +318,7 @@ describe("util module", function()
|
||||
|
||||
describe("isEmptyDir()", function()
|
||||
it("should return true on empty dir", function()
|
||||
assert.is_true(util.isEmptyDir(DataStorage:getDataDir() .. "/data/dict")) -- should be empty during unit tests
|
||||
assert.is_true(util.isEmptyDir(DataStorage:getDataDir() .. "/history")) -- should be empty during unit tests
|
||||
end)
|
||||
it("should return false on non-empty dir", function()
|
||||
assert.is_false(util.isEmptyDir(DataStorage:getDataDir())) -- should contain subdirectories
|
||||
|
||||
Reference in New Issue
Block a user