1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-12-11 19:41:11 +01:00

tests/modules/dependencies: use the remaining *Package option

This commit is contained in:
Gaetan Lepage 2025-12-07 11:51:28 +01:00 committed by Gaétan Lepage
parent 8441008175
commit 451b1806a6

View file

@ -77,34 +77,19 @@ in
test = { test = {
buildNixvim = false; buildNixvim = false;
warnings = expect: [ warnings = expect: [
(expect "count" 2) (expect "count" 1)
(expect "any" "The option `plugins.chatgpt.curlPackage' defined in `") (expect "any" "The option `plugins.efmls-configs.efmLangServerPackage' defined in `")
(expect "any" "has been replaced by `dependencies.curl.enable' and `dependencies.curl.package'.") (expect "any" "has been replaced by `dependencies.efm-langserver.enable' and `dependencies.efm-langserver.package'.")
(expect "any" "The option `plugins.glow.glowPackage' defined in `")
]; ];
}; };
plugins.chatgpt.curlPackage = null; plugins.efmls-configs.efmLangServerPackage = null;
plugins.glow.glowPackage = pkgs.hello;
assertions = [ assertions = [
{ {
assertion = !lib.elem pkgs.curl config.extraPackages; assertion = !lib.elem pkgs.efm-langserver config.extraPackages;
message = "Expected curl not to be installed."; message = "Expected efm-langserver not to be installed.";
}
{
assertion = config.dependencies.glow.enable;
message = "Expected `dependencies.glow` to be enabled.";
}
{
assertion = lib.elem pkgs.hello config.extraPackages;
message = "Expected hello to be installed.";
}
{
assertion = !lib.elem pkgs.glow config.extraPackages;
message = "Expected glow not to be installed.";
} }
]; ];
}; };