mirror of
https://github.com/koreader/koreader
synced 2024-11-13 19:11:25 +00:00
11 lines
388 B
Lua
11 lines
388 B
Lua
|
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)
|