mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-01 07:21:33 -07:00
e64ff1a0ee
- Add `subminer anime` / `--anime` and a tray entry to open a browser that searches installed Aniyomi extension sources, shows cover art and episodes, and plays into mpv with overlay/mining attached - Add an Extensions tab to add repos and install/update/remove sources, and per-source settings for sources needing config - Support searching all sources at once with streaming, per-source results and status - Prefer Japanese audio/subtitle tracks from the source and keep the primary subtitle slot reserved for Japanese - Fix window/tray/Dock handling so the browser and mpv can be switched between without quitting the app or losing the Dock icon - Add anime.repos, anime.extensionsDir, anime.preferredQuality config keys (no bundled repos or discovery)
15 lines
584 B
TypeScript
15 lines
584 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');
|
|
});
|