summaryrefslogtreecommitdiff
path: root/tests/js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/hero.mjs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/js/hero.mjs b/tests/js/hero.mjs
index 1d5f910..7c19b8d 100644
--- a/tests/js/hero.mjs
+++ b/tests/js/hero.mjs
@@ -11,6 +11,7 @@ import {
loggerGlobals,
configLogger,
logit,
+ now,
makeLogger,
isValidMethod,
isValidUpgrade,
@@ -80,6 +81,15 @@ const test_configLogger = async t => {
});
};
+const test_now = async t => {
+ t.start("now()");
+
+ await t.test("we get an ISO date", () => {
+ const s = now();
+ assert.deepEqual(s, new Date(s).toISOString());
+ });
+};
+
const test_logit = async t => {
t.start("logit()");
@@ -2338,6 +2348,7 @@ const test_buildServer = async t => {
await runner.runTests([
test_configLogger,
test_logit,
+ test_now,
test_makeLogger,
test_isValidMethod,
test_isValidUpgrade,