From 4e008166be610a9586370c905d105982e29df97b Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 10 Jun 2025 19:00:57 +0200 Subject: [PATCH] Fix(tests/buildClan): reduce expected attributes --- lib/build-clan/tests.nix | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/lib/build-clan/tests.nix b/lib/build-clan/tests.nix index ee0f14080..211837263 100644 --- a/lib/build-clan/tests.nix +++ b/lib/build-clan/tests.nix @@ -89,7 +89,7 @@ in }; in { - expr = config.clanInternals.meta; + expr = config.clanInternals.inventory.meta; expected = { description = null; icon = null; @@ -108,35 +108,8 @@ in }; in { - expr = result.clanInternals.meta; - expected = { - description = null; - icon = null; - name = "test"; - }; - }; - - test_fn_extensiv_meta = - let - result = buildClan { - self = { - inputs = { }; - }; - directory = ./.; - meta.name = "test"; - meta.description = "test"; - meta.icon = "test"; - inventory.meta.name = "superclan"; - inventory.meta.description = "description"; - inventory.meta.icon = "icon"; - }; - in - { - expr = result.clanInternals.meta; - expectedError = { - type = "ThrownError"; - msg = ""; - }; + expr = lib.isAttrs result.clanInternals; + expected = true; }; test_fn_clan_core =