mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 02:10:15 +01:00
style: adjust icon scale, favicon, azure icon; chore: convert files to TSX; ci: unit tests for generation buttons (#987)
* some jsx to tsx and added 3 new test * test(stop) * new librechat and azure icon, small fix * fix(tsc error) * fix(tsc error) Endpoint Item
This commit is contained in:
parent
3137f467a8
commit
be71a1947b
21 changed files with 187 additions and 56 deletions
|
|
@ -0,0 +1,22 @@
|
|||
import { render, fireEvent } from '@testing-library/react';
|
||||
import Continue from '../Continue';
|
||||
|
||||
describe('Continue', () => {
|
||||
it('should render the Continue button', () => {
|
||||
const { getByText } = render(
|
||||
<Continue
|
||||
onClick={() => {
|
||||
('');
|
||||
}}
|
||||
/>,
|
||||
);
|
||||
expect(getByText('Continue')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should call onClick when the button is clicked', () => {
|
||||
const handleClick = jest.fn();
|
||||
const { getByText } = render(<Continue onClick={handleClick} />);
|
||||
fireEvent.click(getByText('Continue'));
|
||||
expect(handleClick).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue