mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 17:45:03 +02:00
tests: cleanup tests to better use callTest
pattern
e.g. Prefer taking `pkgs.*` attrs directly as function arguments.
This commit is contained in:
parent
4a508ceee2
commit
036e11665f
7 changed files with 33 additions and 20 deletions
|
@ -1,4 +1,7 @@
|
|||
{ makeNixvimWithModule, pkgs }:
|
||||
{
|
||||
makeNixvimWithModule,
|
||||
runCommandNoCCLocal,
|
||||
}:
|
||||
let
|
||||
extraFiles = {
|
||||
"one".text = "one";
|
||||
|
@ -12,7 +15,7 @@ let
|
|||
};
|
||||
};
|
||||
in
|
||||
pkgs.runCommand "extra-files-test"
|
||||
runCommandNoCCLocal "extra-files-test"
|
||||
{
|
||||
root = build.config.build.extraFiles;
|
||||
files = builtins.attrNames extraFiles;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue