1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00

tests: add proper check for rakeLeaves

also drop mkSuites test, which is now deprecated
This commit is contained in:
Pacman99 2021-05-26 08:32:11 -07:00 committed by Parthiv Seetharaman
parent e838f60e29
commit 177f01ced0
2 changed files with 7 additions and 12 deletions

View File

@ -43,19 +43,14 @@ lib.runTests {
};
};
testSuites = {
expr = mkSuites {
suites = { profiles, ... }: with profiles; {
bar = [ foo f ];
testRakeLeaves = {
expr = importers.rakeLeaves ./profiles;
expected = {
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)
];
};
};
}