tests.trivial-builders.writeShellApplication.entries.test-meta: avoid duplicated and hard-coded value assertion (#460456)

This commit is contained in:
Yueh-Shun Li
2025-11-10 22:41:47 +00:00
committed by GitHub
@@ -35,14 +35,15 @@ in
linkFarm "writeShellApplication-tests" {
test-meta =
let
script = writeShellApplication {
args = {
name = "test-meta";
text = "";
meta.description = "Test for the `writeShellApplication` `meta` argument";
};
script = writeShellApplication args;
in
assert script.meta.mainProgram == "test-meta";
assert script.meta.description == "A test for the `writeShellApplication` `meta` argument";
assert script.meta.mainProgram == args.name;
assert script.meta.description == args.meta.description;
script;
test-runtime-inputs = checkShellApplication {