mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-22 18:19:11 +00:00
15 lines
479 B
Nix
15 lines
479 B
Nix
|
{ pkgs, lib, self }:
|
||
|
|
||
|
lib.runTests {
|
||
|
testGetXdgDesktop = {
|
||
|
expr = self.xdg.getXdgDesktop pkgs.wezterm "org.wezfurlong.wezterm";
|
||
|
expected = "${pkgs.wezterm}/share/applications/org.wezfurlong.wezterm.desktop";
|
||
|
};
|
||
|
|
||
|
# This should be a naive function so it should just naively get things.
|
||
|
testGetXdgDesktop2 = {
|
||
|
expr = self.xdg.getXdgDesktop pkgs.hello "non-existing-desktop";
|
||
|
expected = "${pkgs.hello}/share/applications/non-existing-desktop.desktop";
|
||
|
};
|
||
|
}
|