chore: formatting
parent
a1cc308580
commit
ab7040d8c0
|
|
@ -24,7 +24,7 @@ describe("Autoloading", function()
|
||||||
coroutine.resume(co)
|
coroutine.resume(co)
|
||||||
end, 2000)
|
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/"
|
local session_dir = vim.fn.getcwd() .. "/test/dummy_data/"
|
||||||
require("persisted").setup({
|
require("persisted").setup({
|
||||||
|
|
@ -35,14 +35,13 @@ describe("Autoloading", function()
|
||||||
-- Setting the parent of our current to an ignored directory
|
-- Setting the parent of our current to an ignored directory
|
||||||
{
|
{
|
||||||
string.format("%s%s..%s", vim.fn.getcwd(), fp_sep, fp_sep),
|
string.format("%s%s..%s", vim.fn.getcwd(), fp_sep, fp_sep),
|
||||||
exact = true
|
exact = true,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
coroutine.yield()
|
coroutine.yield()
|
||||||
|
|
||||||
local content = vim.fn.getline(1, "$")
|
local content = vim.fn.getline(1, "$")
|
||||||
assert.equals("If you're reading this, I guess auto-loading works", content[1])
|
assert.equals("If you're reading this, I guess auto-loading works", content[1])
|
||||||
|
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue