Skip to content

Commit

Permalink
adjust tests to reflect changes in the codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
atticus-sullivan committed Jan 6, 2025
1 parent aac6f1c commit 0917091
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specs/watcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ describe("watcher", function()
describe("gather_input_files_to_watch", function()
it("returns an empty list if filelist is empty", function()
local max_watches = 10
local options = { watch_inc_exc = nil }
local options = { watch_filter = nil }
local filelist = {}

local result = watcher.gather_input_files_to_watch(max_watches, options, filelist)
expect.equal(#result, 0)
end)

it("filters files based on provided watch_inc_exc", function()
it("filters files based on provided watch_filter", function()
local max_watches = 10
local options = { watch_inc_exc = { { type = "only_ext", param = "tex" } } }
local options = { watch_filter = { { type = "inc_ext", param = "tex" } } }
local filelist = {
{ abspath = "file1.tex", kind = "input" },
{ abspath = "file2.pdf", kind = "input" },
Expand All @@ -37,7 +37,7 @@ describe("watcher", function()

it("limits the number of files to max_watches", function()
local max_watches = 2
local options = { watch_inc_exc = nil }
local options = { watch_filter = nil }
local filelist = {
{ abspath = "file1.tex", kind = "input" },
{ abspath = "file2.tex", kind = "input" },
Expand Down

0 comments on commit 0917091

Please sign in to comment.