bito-code-review[bot] commented on code in PR #38094:
URL: https://github.com/apache/superset/pull/38094#discussion_r2917184399
##########
superset-frontend/src/visualizations/TimeTable/components/FormattedNumber/FormattedNumber.test.tsx:
##########
@@ -39,14 +39,9 @@ test('should render with thousands separator', () => {
expect(screen.getByText('1,234,567')).toBeInTheDocument();
});
-test('should render zero when num is undefined', () => {
+test('should render null when num is undefined', () => {
render(<FormattedNumber format=".2f" />);
- expect(screen.getByText('0.00')).toBeInTheDocument();
-});
-
-test('should render zero without format when num is undefined', () => {
- render(<FormattedNumber />);
- expect(screen.getByText('0')).toBeInTheDocument();
+ expect(screen.getByText('null')).toBeInTheDocument();
Review Comment:
<!-- Bito Reply -->
This question isn’t related to the pull request. I can only help with
questions about the PR’s code or comments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]