Get rid of test for function that is no longer used

This commit is contained in:
Alex Humphries 2026-01-27 17:09:04 -05:00
parent 6e9a89784b
commit 65ce7b2a24

View file

@ -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({});