mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-31 07:09:40 +02:00
tests: allow test cases to use the nixvim helpers (for testing them)
This commit is contained in:
parent
11b22bab05
commit
9e448b7ff0
10 changed files with 12 additions and 11 deletions
|
@ -35,6 +35,7 @@
|
|||
# Remove the nesting
|
||||
testsList = lib.lists.flatten (parseDirectories root []);
|
||||
|
||||
helpers = import ../lib/helpers.nix {inherit lib;};
|
||||
testsListEvaluated = builtins.map ({
|
||||
cases,
|
||||
namespace,
|
||||
|
@ -42,8 +43,8 @@
|
|||
if builtins.isAttrs cases
|
||||
then args
|
||||
else {
|
||||
# cases = cases {inherit pkgs;};
|
||||
cases = cases {inherit pkgs;};
|
||||
# cases is a function
|
||||
cases = cases {inherit pkgs helpers;};
|
||||
inherit namespace;
|
||||
})
|
||||
testsList;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue