mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
tests: omit default
suffix in test names
If the test file is `default.nix`, we don't need to append the filename to the test namespace.
This commit is contained in:
parent
ae612f8249
commit
e679ee91fa
1 changed files with 3 additions and 1 deletions
|
@ -36,7 +36,9 @@ let
|
||||||
in
|
in
|
||||||
if type == "regular" then
|
if type == "regular" then
|
||||||
lib.optional (lib.hasSuffix ".nix" name) (
|
lib.optional (lib.hasSuffix ".nix" name) (
|
||||||
handleTestFile file (namespace ++ [ (lib.removeSuffix ".nix" name) ])
|
handleTestFile file (
|
||||||
|
namespace ++ lib.optional (name != "default.nix") (lib.removeSuffix ".nix" name)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
fetchTests file (namespace ++ [ name ]);
|
fetchTests file (namespace ++ [ name ]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue