mirror of
https://github.com/Melorise/TamaASR.git
synced 2026-11-07 14:39:32 +00:00
整合 Linux Fcitx5 实时输入、网页后端、设置页、悬浮球、托盘和发行打包能力。 AI-assisted-by: Codex AI-model: gpt-5.6-sol AI-reasoning-effort: medium Co-authored-by: Codex <codex@openai.com>
13 lines
585 B
TypeScript
13 lines
585 B
TypeScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
import { resolveDebugLoginAction } from '../src/main/debug-login-flow';
|
|
|
|
test('首次打开调试页时先显示应用内登录提示', () => {
|
|
assert.deepEqual(resolveDebugLoginAction(false, false), { action: 'prompt', markShown: false });
|
|
});
|
|
|
|
test('用户确认或已经提示过时直接打开调试页', () => {
|
|
assert.deepEqual(resolveDebugLoginAction(false, true), { action: 'open', markShown: true });
|
|
assert.deepEqual(resolveDebugLoginAction(true, false), { action: 'open', markShown: false });
|
|
});
|