19 lines
406 B
Nix
19 lines
406 B
Nix
|
{ it, ... }:
|
||
|
let
|
||
|
test = import ../tix/test.nix;
|
||
|
in
|
||
|
[
|
||
|
(it "get's test results" {
|
||
|
expected = [{"msg" = "test's itself???"; "success"= true;}];
|
||
|
actual = ( test ./it.test.nix ).results;
|
||
|
})
|
||
|
(it "has a path" {
|
||
|
actual = builtins.typeOf ( test ./it.test.nix ).path;
|
||
|
expected = "path";
|
||
|
})
|
||
|
(it "fails to build non test" {
|
||
|
actual = ( test ./bad/string.nix );
|
||
|
throws = true;
|
||
|
})
|
||
|
]
|