mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-28 18:22:42 -08:00
refactor(config): extract resolve domain modules and seam tests
This commit is contained in:
16
src/config/resolve/jellyfin.test.ts
Normal file
16
src/config/resolve/jellyfin.test.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { createResolveContext } from './context';
|
||||
import { applyIntegrationConfig } from './integrations';
|
||||
|
||||
test('jellyfin directPlayContainers are normalized', () => {
|
||||
const { context } = createResolveContext({
|
||||
jellyfin: {
|
||||
directPlayContainers: [' MKV ', 'mp4', '', ' WebM ', 42 as unknown as string],
|
||||
},
|
||||
});
|
||||
|
||||
applyIntegrationConfig(context);
|
||||
|
||||
assert.deepEqual(context.resolved.jellyfin.directPlayContainers, ['mkv', 'mp4', 'webm']);
|
||||
});
|
||||
Reference in New Issue
Block a user