Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Dec 18, 2023
1 parent a1cc308 commit ab7040d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions tests/autoload/autoload_session_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,25 @@ describe("Autoloading", function()
vim.defer_fn(function()
coroutine.resume(co)
end, 2000)
local fp_sep = vim.loop.os_uname().sysname:lower():match('windows') and '\\' or '/' -- \ for windows, mac and linux both use \

local fp_sep = vim.loop.os_uname().sysname:lower():match("windows") and "\\" or "/" -- \ for windows, mac and linux both use \

local session_dir = vim.fn.getcwd() .. "/test/dummy_data/"
require("persisted").setup({
save_dir = session_dir,
autoload = true,
autosave = true,
ignored_dirs = {
-- Setting the parent of our current to an ignored directory
{
{
string.format("%s%s..%s", vim.fn.getcwd(), fp_sep, fp_sep),
exact = true
}
}
exact = true,
},
},
})
coroutine.yield()

local content = vim.fn.getline(1, "$")
assert.equals("If you're reading this, I guess auto-loading works", content[1])

end)
end)

0 comments on commit ab7040d

Please sign in to comment.