chore: add testing for user commands

This commit is contained in:
Ali Almohaya 2022-10-30 02:03:40 +03:00
parent cb378a6d8c
commit 264f7897bf
No known key found for this signature in database
GPG key ID: 4B80BC43FC6007E0
5 changed files with 114 additions and 0 deletions

View file

@ -78,6 +78,12 @@ end
-- opens a url in the correct OS
function M.open_url(url)
-- when running in test env store the url
if vim.g.test then
vim.g.OPENINGH_RESULT = url
return true
end
-- order here matters
-- wsl must come before win
-- wsl must come before linux