mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
modules/test: document possible types for expectation value
This commit is contained in:
parent
e679ee91fa
commit
e5974b316d
1 changed files with 8 additions and 1 deletions
|
@ -43,7 +43,14 @@ let
|
||||||
if config.expect == null then
|
if config.expect == null then
|
||||||
lib.types.unspecified
|
lib.types.unspecified
|
||||||
// {
|
// {
|
||||||
description = "defined by `expect`";
|
description = ''
|
||||||
|
Depends on `expect`:
|
||||||
|
${lib.concatStringsSep "\n" (
|
||||||
|
lib.mapAttrsToList (
|
||||||
|
name: spec: "- ${builtins.toJSON name}: ${spec.valueType.description}"
|
||||||
|
) cfg.namedExpectationPredicates
|
||||||
|
)}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
namedPredicate.valueType;
|
namedPredicate.valueType;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue