From 65ce7b2a241f1cfdefa2d04b3f69eef46cb9ab8c Mon Sep 17 00:00:00 2001 From: Alex Humphries Date: Tue, 27 Jan 2026 17:09:04 -0500 Subject: [PATCH] Get rid of test for function that is no longer used --- .../question-chain/question-chain.spec.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/digital-components/question-chain/question-chain.spec.js b/src/digital-components/question-chain/question-chain.spec.js index 200aa8cb..6e92a3d1 100644 --- a/src/digital-components/question-chain/question-chain.spec.js +++ b/src/digital-components/question-chain/question-chain.spec.js @@ -24,8 +24,6 @@ function setupMocks({ } ] }) { - Element.prototype.scrollIntoView = jest.fn(); - const mountOptions = getMountOptions({}); mountOptions.propsData = { questionData: questionDataProp @@ -254,20 +252,6 @@ describe('Question Chain component', () => { expect(result).toBeFalsy(); }); - test('should trigger scroll to .current-question if returnedAnswer is a nextQuestion (not a final answer)', async () => { - // Arrange - const { wrapper } = setupMocks({}); - const testReturnedAnswer = '1|nextQuestion|DB10840|No'; - - // Act - wrapper.vm.getQuestionChainAnswerIfComplete(testReturnedAnswer); - - await nextTick(); - - // Assert - expect(Element.prototype.scrollIntoView).toHaveBeenCalled(); - }); - test('should return answer object if returnedAnswer is a final matching answer', async () => { // Arrange const { wrapper } = setupMocks({});