mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
30 lines
844 B
Nix
30 lines
844 B
Nix
{ pkgs, lib }:
|
|
|
|
let
|
|
sampleBase16Scheme = lib.trivial.importYAML ./sample-base16-scheme.yml;
|
|
sampleBase16Scheme' = lib.trivial.importYAML ./sample-base16-scheme-with-missing-colors.yml;
|
|
sampleBase24Scheme = lib.trivial.importYAML ./sample-base24-scheme.yml;
|
|
sampleBase24Scheme' = lib.trivial.importYAML ./sample-base24-scheme-with-missing-colors.yml;
|
|
in
|
|
pkgs.lib.runTests {
|
|
testIsBase16 = {
|
|
expr = lib.tinted-theming.isBase16 sampleBase16Scheme.palette;
|
|
expected = true;
|
|
};
|
|
|
|
testIsNotBase16 = {
|
|
expr = lib.tinted-theming.isBase16 sampleBase16Scheme'.palette;
|
|
expected = false;
|
|
};
|
|
|
|
testIsBase24 = {
|
|
expr = lib.tinted-theming.isBase24 sampleBase24Scheme.palette;
|
|
expected = true;
|
|
};
|
|
|
|
testIsNotBase24 = {
|
|
expr = lib.tinted-theming.isBase24 sampleBase24Scheme'.palette;
|
|
expected = false;
|
|
};
|
|
}
|