nix-community.nixvim/tests/test-sources/extended-lib.nix
Matt Sturgeon 123a55ed6f
tests: remove special treatment of module
Since we no longer need to extract `tests.dontRun` from an attrset, we
no longer need the "special" `module` attr.
2024-08-20 01:07:21 +01:00

23 lines
410 B
Nix

let
module =
{ lib, helpers, ... }:
{
assertions = [
{
assertion = lib ? nixvim;
message = "lib.nixvim should be defined";
}
{
assertion = lib.nixvim == helpers;
message = "lib.nixvim and helpers should be aliases";
}
];
};
in
{
top-level = module;
files-module = {
files."libtest.lua" = module;
};
}