From e72178b84e440703e17ff5d393ba060784bed099 Mon Sep 17 00:00:00 2001 From: isabel Date: Thu, 17 Apr 2025 15:23:14 +0100 Subject: [PATCH] tests/atuin: add theme test --- tests/modules/programs/atuin/default.nix | 1 + tests/modules/programs/atuin/theme.nix | 26 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/modules/programs/atuin/theme.nix diff --git a/tests/modules/programs/atuin/default.nix b/tests/modules/programs/atuin/default.nix index 08443946..897c0c7f 100644 --- a/tests/modules/programs/atuin/default.nix +++ b/tests/modules/programs/atuin/default.nix @@ -6,5 +6,6 @@ atuin-no-shell = ./no-shell.nix; atuin-zsh = ./zsh.nix; atuin-set-flags = ./set-flags.nix; + atuin-theme = ./theme.nix; atuin-nushell = ./nushell.nix; } diff --git a/tests/modules/programs/atuin/theme.nix b/tests/modules/programs/atuin/theme.nix new file mode 100644 index 00000000..1d1caaa3 --- /dev/null +++ b/tests/modules/programs/atuin/theme.nix @@ -0,0 +1,26 @@ +{ + programs.atuin = { + enable = true; + + themes.my-theme = { + theme.name = "My Theme"; + colors = { + Base = "#000000"; + Title = "#FFFFFF"; + }; + }; + }; + + nmt.script = '' + assertFileContent \ + home-files/.config/atuin/themes/my-theme.toml \ + ${builtins.toFile "example-theme-expected.toml" '' + [colors] + Base = "#000000" + Title = "#FFFFFF" + + [theme] + name = "My Theme" + ''} + ''; +}