Unverified Commit 4e827fc3 authored by Yueh-Shun Li's avatar Yueh-Shun Li Committed by GitHub
Browse files

tests.trivial-builders.writeShellApplication.entries.test-meta: avoid...

tests.trivial-builders.writeShellApplication.entries.test-meta: avoid duplicated and hard-coded value assertion (#460456)
parents fa943cc5 8a3dbe81
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -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 {