Skip to content

Commit

Permalink
broot: fix test (#4170)
Browse files Browse the repository at this point in the history
We can't test for the whole contents of the config file because that is
out of our control and may change unexpectedly. Only check for the
settings we know should be set.
  • Loading branch information
ncfavier authored Jun 27, 2023
1 parent 3bc1bc4 commit 4c08f65
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tests/modules/programs/broot/broot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@

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]
[special_paths]
"/media" = "no-enter"
''
}
assertFileContains home-files/.config/broot/conf.toml 'modal = true'
'';
}

0 comments on commit 4c08f65

Please sign in to comment.