From 05a608fb69fea344292fc10f60b980f618c59ea9 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Tue, 9 Sep 2025 12:58:47 -0500 Subject: [PATCH] fix(web): unit test patchup due to bad index choice --- .../test/auto/headless/engine/main/inputProcessor.tests.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/test/auto/headless/engine/main/inputProcessor.tests.ts b/web/src/test/auto/headless/engine/main/inputProcessor.tests.ts index 5799db98f3..a07e861da0 100644 --- a/web/src/test/auto/headless/engine/main/inputProcessor.tests.ts +++ b/web/src/test/auto/headless/engine/main/inputProcessor.tests.ts @@ -849,8 +849,7 @@ describe('InputProcessor', function() { { left: 'this context is for techn', startOfBuffer: true, endOfBuffer: true }, { left: 'this context is for technical', startOfBuffer: true, endOfBuffer: true }, { left: 'this context is for technical.', startOfBuffer: true, endOfBuffer: true }, - { left: 'this context is for technical... ', startOfBuffer: true, endOfBuffer: true }, - { left: 'this context is for technica', startOfBuffer: true, endOfBuffer: true } + { left: 'this context is for technical... ', startOfBuffer: true, endOfBuffer: true } ]; const mock = new Mock(contexts[0].left); @@ -874,7 +873,7 @@ describe('InputProcessor', function() { core.processKeyEvent(new KeyEvent(getEventFor('K_BKSP')), mock, predContext); core.processKeyEvent(new KeyEvent(getEventFor('K_BKSP')), mock, predContext); const behavior3 = core.processKeyEvent(new KeyEvent(getEventFor('K_BKSP')), mock, predContext); - assert.equal(mock.getTextBeforeCaret(), contexts[5].left); + assert.equal(mock.getTextBeforeCaret(), contexts[2].left); const finalSuggestions = await behavior3.predictionPromise; assert.isOk(finalSuggestions.find(s => s.tag == 'revert'));