tix/test/run.test.nix

11 lines
238 B
Nix
Raw Normal View History

2024-01-02 13:15:50 +00:00
{it, ...}: let
2024-01-02 12:44:07 +00:00
pkgs = import <nixpkgs> {}; # impure ¯\_(ツ)_/¯
run = import ../tix/run.nix pkgs;
2024-01-02 13:15:50 +00:00
output = run [./it.test.nix];
in [
2024-01-02 12:44:07 +00:00
(it "makes a derivation called test" {
expected = "test";
actual = output.name;
})
]