Skip to content

Commit baaf43d

Browse files
committed
tests/nixpkgs-module: split up helper fn
1 parent df62c24 commit baaf43d

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

tests/nixpkgs-module.nix

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,22 @@ let
1010

1111
defaultPkgs = pkgs;
1212

13-
testModule =
13+
evalModule =
1414
name: module:
15-
let
16-
configuration = lib.nixvim.modules.evalNixvim {
17-
modules = lib.toList module ++ [
18-
{
19-
test = {
20-
inherit name;
21-
buildNixvim = false;
22-
runNvim = false;
23-
runCommand = runCommandLocal;
24-
};
25-
}
26-
];
27-
};
28-
in
29-
configuration.config.build.test;
15+
lib.nixvim.modules.evalNixvim {
16+
modules = lib.toList module ++ [
17+
{
18+
test = {
19+
inherit name;
20+
buildNixvim = false;
21+
runNvim = false;
22+
runCommand = runCommandLocal;
23+
};
24+
}
25+
];
26+
};
27+
28+
testModule = name: module: (evalModule name module).config.build.test;
3029

3130
in
3231
linkFarmFromDrvs "nixpkgs-module-test" [

0 commit comments

Comments
 (0)