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>
19 lines
574 B
TypeScript
19 lines
574 B
TypeScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
import { decideOperationalStatus } from '../src/backends/status-decision';
|
|
|
|
test('登录入口存在时不得被编辑器和麦克风误判为已登录', () => {
|
|
assert.deepEqual(decideOperationalStatus(true, true, true), {
|
|
loginStatus: 'logged-out',
|
|
ready: false,
|
|
message: '尚未登录'
|
|
});
|
|
});
|
|
|
|
test('对话页具备编辑器和麦克风时允许录音', () => {
|
|
assert.deepEqual(decideOperationalStatus(true, true, false), {
|
|
loginStatus: 'logged-in',
|
|
ready: true
|
|
});
|
|
});
|