chore(lib): add assertion for script to not be null when type=="script"

This commit is contained in:
technofab 2025-06-02 01:13:54 +02:00
parent 25de5061ad
commit c2ca17dfc5

View file

@ -24,7 +24,8 @@
if format == "json"
then expected
else lib.generators.toPretty {} expected;
in {
in
assert lib.assertMsg (!(type == "script" && script == null)) "test ${name} has type 'script' but no script was passed"; {
inherit type name description;
actual = actual';
expected = expected';