mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-02 07:21:33 -07:00
fbfdea7c64
- Preference store keys entries by extension package + bridge source id; legacy unscoped entries are discarded once instead of being handed to whichever extension asks first - Source picker's "Load more" appends the next page without duplicating streamed results - Repository index fetches and subtitle/APK downloads now time out and are size-bounded instead of hanging or growing unbounded - APK installs are staged to a temp file and renamed into place - Stream metadata lookup matches the requested path, not only the currently playing one - Reworked animeui into browse-state/detail-panel/panels.css modules - Reverted premature CHANGELOG unreleased entries; refreshed anime-browser docs
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',
|
|
);
|
|
});
|