mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
test: add unit tests for docsettings
This commit is contained in:
committed by
Frans de Jonge
parent
0871100367
commit
2aa9d5d64e
@@ -2,6 +2,7 @@ local lfs = require("libs/libkoreader-lfs")
|
||||
local DataStorage = require("datastorage")
|
||||
local dump = require("dump")
|
||||
local purgeDir = require("ffi/util").purgeDir
|
||||
local logger = require("logger")
|
||||
|
||||
local DocSettings = {}
|
||||
|
||||
@@ -24,6 +25,7 @@ function DocSettings:getSidecarDir(doc_path)
|
||||
end
|
||||
-- We shouldn't be called with anything but files with registered
|
||||
-- extensions, but in case we are, return something useful
|
||||
logger.err("getSidecarFile called with unexpected path:", doc_path)
|
||||
return doc_path..".sdr"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user