mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-15 03:34:31 +02:00
tests: remove special case for efmls-configs
This commit is contained in:
parent
06419627e2
commit
087f70cb0a
2 changed files with 95 additions and 98 deletions
|
@ -41,21 +41,8 @@ let
|
|||
testsList = lib.lists.flatten (parseDirectories root [ ]);
|
||||
|
||||
testsListEvaluated = builtins.map (
|
||||
{ cases, namespace }@args:
|
||||
if builtins.isAttrs cases then
|
||||
args
|
||||
else
|
||||
{
|
||||
# cases is a function
|
||||
cases = cases {
|
||||
inherit pkgs helpers;
|
||||
efmls-options = import ../plugins/lsp/language-servers/efmls-configs.nix {
|
||||
inherit pkgs lib helpers;
|
||||
config = { };
|
||||
};
|
||||
};
|
||||
inherit namespace;
|
||||
}
|
||||
{ cases, ... }@args:
|
||||
if builtins.isFunction cases then args // { cases = cases { inherit pkgs lib helpers; }; } else args
|
||||
) testsList;
|
||||
|
||||
# Take a list of test cases (i.e the content of a file) and prepare a test case that can be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue