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:
parent
e838f60e29
commit
177f01ced0
@ -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)
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user