tix/test/watch.test.nix

20 lines
369 B
Nix

{
describe,
it,
...
}: let
mockpkgs = {
writeShellScriptBin = name: content: content;
inotify-tools = "inotify-tools";
};
watch = import ../tix/watch.nix mockpkgs;
in
describe "watch" [
(it "contains the command" {
actual = builtins.match ".*(run me).*" (watch {
cmd = "run me";
});
expected = ["run me"];
})
]