2024-01-03 03:07:39 +00:00
|
|
|
{
|
|
|
|
describe,
|
|
|
|
it,
|
|
|
|
...
|
|
|
|
}: let
|
2024-01-03 01:27:47 +00:00
|
|
|
mockpkgs = {
|
|
|
|
writeShellScriptBin = name: content: content;
|
|
|
|
inotify-tools = "inotify-tools";
|
|
|
|
};
|
|
|
|
watch = import ../tix/watch.nix mockpkgs;
|
|
|
|
in
|
2024-01-03 03:07:39 +00:00
|
|
|
describe "watch" [
|
2024-01-03 06:47:16 +00:00
|
|
|
(it "contains the command" {
|
2024-01-03 06:54:28 +00:00
|
|
|
actual = builtins.match ".*(run me).*" (watch {
|
|
|
|
cmd = "run me";
|
|
|
|
});
|
2024-01-03 06:47:16 +00:00
|
|
|
expected = ["run me"];
|
2024-01-03 03:07:39 +00:00
|
|
|
})
|
|
|
|
]
|