mirror of
https://github.com/divnix/digga.git
synced 2024-12-24 00:21:47 +03:00
tests: add proper check for rakeLeaves
also drop mkSuites test, which is now deprecated
This commit is contained in:
parent
e838f60e29
commit
177f01ced0
@ -43,19 +43,14 @@ lib.runTests {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
testSuites = {
|
testRakeLeaves = {
|
||||||
expr = mkSuites {
|
expr = importers.rakeLeaves ./profiles;
|
||||||
suites = { profiles, ... }: with profiles; {
|
expected = {
|
||||||
bar = [ foo f ];
|
f = toString ./profiles/f.nix;
|
||||||
|
foo = toString ./profiles/foo;
|
||||||
|
t = {
|
||||||
|
bar = toString ./profiles/t/bar.nix;
|
||||||
};
|
};
|
||||||
profiles = [ (./profiles) ];
|
|
||||||
};
|
|
||||||
expected = {
|
|
||||||
bar = [ (toString ./profiles/foo) (toString ./profiles/f.nix) ];
|
|
||||||
allProfiles = [
|
|
||||||
(toString ./profiles/foo)
|
|
||||||
(toString ./profiles/f.nix)
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user