1
1
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:
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 = { 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)
];
}; };
}; };
} }