CatalystUtils::showJobName: write a basic test that shows it works
This commit is contained in:
parent
ceb6ea252a
commit
2b163aa78b
|
@ -4,6 +4,13 @@ use Setup;
|
|||
use Test2::V0;
|
||||
use Hydra::Helper::CatalystUtils;
|
||||
|
||||
my $ctx = test_context();
|
||||
|
||||
my $builds = $ctx->makeAndEvaluateJobset(
|
||||
expression => "basic.nix",
|
||||
build => 1
|
||||
);
|
||||
|
||||
subtest "trim" => sub {
|
||||
my %values = (
|
||||
"" => "",
|
||||
|
@ -25,4 +32,8 @@ subtest "trim" => sub {
|
|||
is(trim($uninitialized), '', "Trimming an uninitialized value");
|
||||
};
|
||||
|
||||
subtest "showJobName" => sub {
|
||||
ok(showJobName($builds->{"empty_dir"}), "showJobName succeeds");
|
||||
};
|
||||
|
||||
done_testing;
|
||||
|
|
Loading…
Reference in a new issue