Skip to content

Commit

Permalink
test: fix tests where M had leaked out
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronr committed Aug 21, 2024
1 parent 3143e5d commit 6a8e0e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/args_files_enabled_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe("The args files enabled config", function()
end)

it("doesn't autosave when args_allow_files_auto_save returns false", function()
M.clearSessionFilesAndBuffers()
TL.clearSessionFilesAndBuffers()

vim.cmd("e " .. TL.other_file)
assert.equals(1, vim.fn.bufexists(TL.other_file))
Expand All @@ -111,7 +111,7 @@ describe("The args files enabled config", function()
end)

it("does autosave a session when args_allow_files_auto_save returns true", function()
M.clearSessionFilesAndBuffers()
TL.clearSessionFilesAndBuffers()

vim.cmd("e " .. TL.other_file)
assert.equals(1, vim.fn.bufexists(TL.other_file))
Expand Down
2 changes: 1 addition & 1 deletion tests/cmds_custom_dir_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("The default config", function()
}

local custom_sessions_dir = vim.fn.getcwd() .. "/tests/custom_sessions/"
local cwd_session_name = M.escapeSessionName(vim.fn.getcwd())
local cwd_session_name = TL.escapeSessionName(vim.fn.getcwd())
local cwd_session_path = custom_sessions_dir .. cwd_session_name .. ".vim"
local named_session_path = custom_sessions_dir .. TL.named_session_name .. ".vim"

Expand Down

0 comments on commit 6a8e0e8

Please sign in to comment.