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).
pull/8320/head
yparitcher 3 years ago committed by GitHub
parent b2a7d0d5ce
commit 8c29b71e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save