mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-10-11 11:32:34 +08:00
chore: 打包配置 测试用例
This commit is contained in:
@@ -118,8 +118,11 @@ describe('preload IPC contract', () => {
|
||||
createTime: 1785553200,
|
||||
svrId: 'server-11'
|
||||
}
|
||||
// preload 把 options 一路透传(不传即显式 undefined),主进程签名是 (reference, options?)。
|
||||
await api.recognizeVoice(voiceReference)
|
||||
expect(invoke).toHaveBeenLastCalledWith('voice:recognize', voiceReference)
|
||||
expect(invoke).toHaveBeenLastCalledWith('voice:recognize', voiceReference, undefined)
|
||||
await api.recognizeVoice(voiceReference, { force: true })
|
||||
expect(invoke).toHaveBeenLastCalledWith('voice:recognize', voiceReference, { force: true })
|
||||
await api.cancelVoiceRecognition(voiceReference)
|
||||
expect(invoke).toHaveBeenLastCalledWith('voice:cancelRecognition', voiceReference)
|
||||
await api.downloadVoiceModel()
|
||||
|
||||
Reference in New Issue
Block a user