mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-31 06:12:12 -07:00
refactor: migrate shared type imports
This commit is contained in:
@@ -17,7 +17,12 @@ export function applyStatsConfig(context: ResolveContext): void {
|
||||
if (markWatchedKey !== undefined) {
|
||||
resolved.stats.markWatchedKey = markWatchedKey;
|
||||
} else if (src.stats.markWatchedKey !== undefined) {
|
||||
warn('stats.markWatchedKey', src.stats.markWatchedKey, resolved.stats.markWatchedKey, 'Expected string.');
|
||||
warn(
|
||||
'stats.markWatchedKey',
|
||||
src.stats.markWatchedKey,
|
||||
resolved.stats.markWatchedKey,
|
||||
'Expected string.',
|
||||
);
|
||||
}
|
||||
|
||||
const serverPort = asNumber(src.stats.serverPort);
|
||||
|
||||
@@ -49,7 +49,10 @@ test('subtitleSidebar accepts zero opacity', () => {
|
||||
applySubtitleDomainConfig(context);
|
||||
|
||||
assert.equal(context.resolved.subtitleSidebar.opacity, 0);
|
||||
assert.equal(warnings.some((warning) => warning.path === 'subtitleSidebar.opacity'), false);
|
||||
assert.equal(
|
||||
warnings.some((warning) => warning.path === 'subtitleSidebar.opacity'),
|
||||
false,
|
||||
);
|
||||
});
|
||||
|
||||
test('subtitleSidebar falls back and warns on invalid values', () => {
|
||||
|
||||
Reference in New Issue
Block a user