Skip to content

Commit

Permalink
tests/modules/output: add tests for providers
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN committed Nov 13, 2024
1 parent d100a4e commit f11a877
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions tests/test-sources/modules/output.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,54 @@
}
];
};

with-providers = {
withNodeJs = true;
withPerl = true;
withPython3 = true;
withRuby = true;

extraConfigLua = ''
if vim.fn.executable("nvim-node") ~= 1 then
print("Unable to find Node.js provider.")
end
if vim.fn.executable("nvim-perl") ~= 1 then
print("Unable to find Perl provider.")
end
if vim.fn.executable("nvim-python3") ~= 1 then
print("Unable to find Python3 provider.")
end
if vim.fn.executable("nvim-ruby") ~= 1 then
print("Unable to find Ruby provider.")
end
'';
};

without-providers = {
withNodeJs = false;
withPerl = false;
withPython3 = false;
withRuby = false;

extraConfigLua = ''
if vim.fn.executable("nvim-node") == 1 then
print("Node.js provider was found.")
end
if vim.fn.executable("nvim-perl") == 1 then
print("Perl provider was found.")
end
if vim.fn.executable("nvim-python3") == 1 then
print("Python3 provider was found.")
end
if vim.fn.executable("nvim-ruby") == 1 then
print("Ruby provider was found.")
end
'';
};
}

0 comments on commit f11a877

Please sign in to comment.