mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +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
|
||||
if type == "regular" then
|
||||
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
|
||||
fetchTests file (namespace ++ [ name ]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue