Get rid of test for function that is no longer used
This commit is contained in:
parent
6e9a89784b
commit
65ce7b2a24
1 changed files with 0 additions and 16 deletions
|
|
@ -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({});
|
||||
|
|
|
|||
Loading…
Reference in a new issue