mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
feat(git): added fast Git.get_origin
and Git.get_config
This commit is contained in:
parent
8a37547171
commit
a39fa0f0ce
2 changed files with 36 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
local Git = require("lazy.manage.git")
|
||||
|
||||
describe("lazy", function()
|
||||
before_each(function()
|
||||
vim.g.lazy_did_setup = false
|
||||
|
@ -31,5 +33,7 @@ describe("lazy", function()
|
|||
assert(not neodev)
|
||||
assert(Config.plugins["neodev.nvim"]._.installed)
|
||||
assert(not Config.plugins["neodev.nvim"]._.is_local)
|
||||
assert.equal("https://github.com/folke/neodev.nvim.git", Git.get_origin(Config.plugins["neodev.nvim"].dir))
|
||||
assert.equal("https://github.com/folke/paint.nvim.git", Git.get_origin(Config.plugins["paint.nvim"].dir))
|
||||
end)
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue