Add prevfile module and test file

This commit is contained in:
The Magician 2023-11-18 13:00:49 +00:00
parent 764abce422
commit 877ae6e460
2 changed files with 16 additions and 0 deletions

9
spec/prevfile_spec.lua Normal file
View File

@ -0,0 +1,9 @@
describe("prevfile", function()
local prevfile = require "prevfile"
it("returns nil when target directory is empty", function()
previous = prevfile.prevfile("dummy/")
assert.are.equals(nil, previous)
end)
end)

7
src/prevfile.lua Normal file
View File

@ -0,0 +1,7 @@
local prevfile = {}
function prevfile.prevfile(target_directory)
return nil
end
return prevfile