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

18 lines
418 B
Nix

{ 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;
};
}