mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 23:30:10 +00:00
fix lint
This commit is contained in:
parent
fe16b749b6
commit
65c3a6df03
@ -46,7 +46,7 @@ const Alert: FunctionComponent<ComponentProps> = (
|
||||
<div className="row">
|
||||
<div className="col-xl-12">
|
||||
<div
|
||||
data-testid="test-id"
|
||||
data-testid="test-id"
|
||||
className={`alert-label-icon flex label-arrow alert ${cssClass} alert-dismissible fade show ${
|
||||
props.onClick ? 'pointer' : ''
|
||||
}`}
|
||||
|
@ -22,11 +22,10 @@ describe('alert tests', () => {
|
||||
expect(handleClose).toBeCalled;
|
||||
});
|
||||
test('it should show icon when alert type is equal to success', () => {
|
||||
render(<Alert type={AlertType.SUCCESS} />);
|
||||
render(<Alert type={AlertType.SUCCESS} />);
|
||||
expect(Icon).toBeInTheDocument;
|
||||
const testId: HTMLElement = screen.getByTestId('test-id');
|
||||
expect(testId).toHaveClass('alert-success');
|
||||
|
||||
});
|
||||
test('it should show icon when alert type is equal to info', () => {
|
||||
render(<Alert type={AlertType.INFO} />);
|
||||
|
Loading…
Reference in New Issue
Block a user