From 702780c61b10d2842298b37a7969840d349be613 Mon Sep 17 00:00:00 2001 From: Ein Anderssono Date: Fri, 16 Oct 2026 06:19:09 +0200 Subject: [PATCH] Fix speech controller test after microphone priming --- tests/voice.test.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/voice.test.cjs b/tests/voice.test.cjs index 1259fe7..845586a 100644 --- a/tests/voice.test.cjs +++ b/tests/voice.test.cjs @@ -228,7 +228,7 @@ test('TTS and microphone are mutually exclusive', () => { h.controller.speak('Svar'); assert.equal(h.recognitions[0].aborted, true); assert.equal(h.controller.getState(), 'QUEUED'); - h.utterances[0].onstart(); + h.utterances.at(-1).onstart(); assert.equal(h.controller.getState(), 'SPEAKING'); });