From 3358eb1bfae54a72e7ead301075a6f39b8967f04 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 2 Apr 2025 15:00:27 +0200 Subject: [PATCH] chore(lib/select): init simple test --- .../distributed-service/tests/import_module_spec.nix | 2 +- lib/select/tests.nix | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/inventory/distributed-service/tests/import_module_spec.nix b/lib/inventory/distributed-service/tests/import_module_spec.nix index 89541868e..4d15cdbd9 100644 --- a/lib/inventory/distributed-service/tests/import_module_spec.nix +++ b/lib/inventory/distributed-service/tests/import_module_spec.nix @@ -1,4 +1,4 @@ -{ callInventoryAdapter }: +{ callInventoryAdapter, ... }: let # Authored module # A minimal module looks like this diff --git a/lib/select/tests.nix b/lib/select/tests.nix index c1a0e21ff..c5e0e5cb7 100644 --- a/lib/select/tests.nix +++ b/lib/select/tests.nix @@ -1,4 +1,10 @@ -{ clanLib }: +{ clanLib, ... }: +let + inherit (clanLib) select; +in { - + test_simple_1 = { + expr = select "a" { a = 1; }; + expected = 1; + }; }