mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-25 05:16:19 -07:00
- Pages now start with setup and usage, and reference material is in compact tables - Configuration reference gives each config block a short explanation and a key/default table - Internal detail removed from user pages, and docs that had drifted from current behavior fixed - The status line shows today's date, set on the client, instead of the page's last-updated date - Add changelog fragment
19 lines
766 B
TypeScript
19 lines
766 B
TypeScript
import { expect, test } from 'bun:test';
|
|
import { formatStatusLineDate, formatStatusLineFilePath } from './status-line';
|
|
|
|
test('status line file path formats root home as index markdown', () => {
|
|
expect(formatStatusLineFilePath('/')).toBe('index.md');
|
|
});
|
|
|
|
test('status line file path formats version archive home without trailing slash', () => {
|
|
expect(formatStatusLineFilePath('/v/0.12.0/')).toBe('v/0.12.0.md');
|
|
});
|
|
|
|
test('status line file path keeps normal docs routes as markdown files', () => {
|
|
expect(formatStatusLineFilePath('/v/0.12.0/configuration')).toBe('v/0.12.0/configuration.md');
|
|
});
|
|
|
|
test('status line date uses the local calendar day, zero padded', () => {
|
|
expect(formatStatusLineDate(new Date(2026, 0, 5, 23, 59))).toBe('2026-01-05');
|
|
});
|