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:
yparitcher
2021-10-10 07:33:57 -04:00
committed by GitHub
parent b2a7d0d5ce
commit 8c29b71e45

View File

@@ -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