journal/tool/tests.jq
2024-11-07 11:39:39 +00:00

20 lines
445 B
Plaintext

import "./testdata/tests_export" as $exportData;
include "journalUtils";
include "testLib";
import "typeLib" as typeLib;
def journalUtilsTests:
expectPassed(runTest(
"invalid input to experienceByTitle";
(
{} | experienceByTitle("Test")
);
. == "experienceByTitle takes a array of experiences as input";
true
));
def testsMain:
journalUtilsTests |
typeLib::typeLibTests |
"Tests Passed\n" | halt_error(0);