Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
PaRangger committed Dec 11, 2024
1 parent e356639 commit 90e9ee3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,5 +284,14 @@ examples.forEach((activeConversation) => {
expect(inlineInput).toBeTruthy(); // Check if the inline input component is present
}));
}

it('should scroll to bottom and set canStartSaving to true when lastScrollPosition is falsy', async () => {
const scrollToBottomSpy = jest.spyOn(component, 'scrollToBottomOfMessages');

await component.goToLastSelectedElement(0, false);

expect(scrollToBottomSpy).toHaveBeenCalledOnce();
expect(component.canStartSaving).toBeTrue();
});
});
});

0 comments on commit 90e9ee3

Please sign in to comment.