labs/lib/src/default.test.nix

19 lines
353 B
Nix
Raw Normal View History

let
lib = import ./../default.nix;
in {
"extend" = {
"lib is extensible" = let
result = lib.extend (final: prev: prev // {
__injected__ = true;
fp = prev.fp // {
__injected__ = true;
};
});
in
result ? __injected__
&& result.fp ? __injected__
&& result.fp ? const;
};
}