-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADM-975 [frontend]: change the style of charts #1532
Conversation
…s in the dora chart
This reverts commit 865db04.
Hi @zhou-yinyuan! 👋 |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences🚀 Don’t miss a bit, follow what’s new on Codacy. Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Quality Gate passed for 'heartbeat-backend'Issues Measures |
Quality Gate passed for 'au-heartbeat-heartbeat-frontend'Issues Measures |
import React, { useEffect } from 'react';
const MyComponent = () => {
useEffect(() => {
const resize = () => {
console.log('Window resized');
};
window.addEventListener('resize', resize);
return () => {
window.removeEventListener('resize', resize);
};
}, []);
return <div>My Component</div>;
};
export default MyComponent; Test import React from 'react';
import { render } from '@testing-library/react';
import MyComponent from './MyComponent';
describe('MyComponent', () => {
it('should call resize event listener on window resize', () => {
// Mock console.log to verify the resize event handler was called
console.log = jest.fn();
// Render the component
render(<MyComponent />);
// Trigger the resize event
window.dispatchEvent(new Event('resize'));
// Check if console.log was called
expect(console.log).toHaveBeenCalledWith('Window resized');
});
}); |
Summary
...
Before
Description
Screenshots
If applicable, add screenshots to help explain behavior of your code.
After
Description
Screenshots
If applicable, add screenshots to help explain behavior of your code.
Note
Null