mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-26 12:55:16 -07:00
17 lines
593 B
TypeScript
17 lines
593 B
TypeScript
import { expect, test } from 'bun:test';
|
|
import { 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',
|
|
);
|
|
});
|