nixos-config/subprojects/bahaghari/tests/lib/tinted-theming/default.nix

18 lines
418 B
Nix
Raw Normal View History

2024-02-24 10:48:07 +00:00
{ pkgs, lib }:
let
sampleBase16Scheme = lib.trivial.importYAML ./sample-base16-scheme.yml;
sampleBase24Scheme = lib.trivial.importYAML ./sample-base24-scheme.yml;
in
pkgs.lib.runTests {
testIsBase16 = {
expr = lib.tinted-theming.isBase16 sampleBase16Scheme.palette;
expected = true;
};
testIsBase24 = {
expr = lib.tinted-theming.isBase24 sampleBase24Scheme.palette;
expected = true;
};
}