2
0
mirror of https://github.com/koreader/koreader synced 2024-11-13 19:11:25 +00:00
koreader/spec/unit/docsettings_spec.lua

11 lines
388 B
Lua
Raw Normal View History

2016-01-06 05:28:26 +00:00
require("commonrequire")
local doc = require("docsettings")
describe("docsettings module", function()
it("should generate sidecar directory path", function()
assert.Equals("../../foo.sdr", doc:getSidecarDir("../../foo.pdf"))
assert.Equals("/foo/bar.sdr", doc:getSidecarDir("/foo/bar.pdf"))
assert.Equals("baz.sdr", doc:getSidecarDir("baz.pdf"))
end)
end)