Getting very simple functions first.
This commit is contained in:
parent
9a5044959f
commit
219dd073ff
4 changed files with 20 additions and 8 deletions
11
test/test-location.nix
Normal file
11
test/test-location.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
nixpkgs = import <nixpkgs> { };
|
||||
sampleData = import ./meta.nix;
|
||||
locationLib = import ../lib/functions/location.nix {
|
||||
data = sampleData;
|
||||
lib = nixpkgs.lib;
|
||||
};
|
||||
in
|
||||
{
|
||||
result = locationLib.mkLocationIndex sampleData.locations "home";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue