const result = th.dateFormat(undefined, undefined, undefined, expected);
assert.strictEqual(result, expected);
});
+ it('handles invalid date', function () {
+ const expected = 'otherwise';
+ const result = th.dateFormat(new Date('bad date'), undefined, undefined, expected);
+ assert.strictEqual(result, expected);
+ });
it('renders Infinity', function () {
const expected = 'end of time';
const result = th.dateFormat(Infinity, expected);
});
}); // LI
+ describe('indented', function () {
+ it('covers', function () {
+ const result = th.indented(2, ['foo', 'bar']);
+ result.forEach((r) => assert(r.startsWith('\t\t')));
+ });
+ }); // indented
+
describe('htmlBody', function () {
it('covers no main', function () {
const result = th.htmlBody(pagePathLevel, ctx, options);