Skip to content

Commit

Permalink
broot: simplify test slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
rycee committed Dec 28, 2022
1 parent 18b56e3 commit d7a3c26
Showing 1 changed file with 20 additions and 24 deletions.
44 changes: 20 additions & 24 deletions tests/modules/programs/broot/broot.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
{ config, lib, pkgs, ... }:

with lib;
{ ... }:

{
config = {
programs.broot = {
enable = true;
settings.modal = true;
};
programs.broot = {
enable = true;
settings.modal = true;
};

nmt.script = ''
assertFileExists home-files/.config/broot/conf.toml
assertFileContent home-files/.config/broot/conf.toml ${
pkgs.writeText "broot.expected" ''
content_search_max_file_size = "10MB"
imports = ["verbs.hjson", {file = "dark-blue-skin.hjson", luma = ["dark", "unknown"]}, {file = "white-skin.hjson", luma = "light"}]
modal = true
show_selection_mark = true
verbs = []
nmt.script = ''
assertFileExists home-files/.config/broot/conf.toml
assertFileContent home-files/.config/broot/conf.toml ${
builtins.toFile "broot.expected" ''
content_search_max_file_size = "10MB"
imports = ["verbs.hjson", {file = "dark-blue-skin.hjson", luma = ["dark", "unknown"]}, {file = "white-skin.hjson", luma = "light"}]
modal = true
show_selection_mark = true
verbs = []
[skin]
[skin]
[special_paths]
"/media" = "no-enter"
''
}
'';
};
[special_paths]
"/media" = "no-enter"
''
}
'';
}

0 comments on commit d7a3c26

Please sign in to comment.