rusackas commented on code in PR #44554:
URL: https://github.com/apache/superset/pull/44554#discussion_r4160672560


##########
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.test.tsx:
##########
@@ -246,3 +246,48 @@ describe('BigNumberViz trendline context menu', () => {
     expect(onContextMenu).not.toHaveBeenCalled();
   });
 });
+
+describe('BigNumberViz alignment', () => {
+  const renderViz = (headerAlignment?: HeaderAlignment) =>
+    render(
+      <BigNumberVis
+        width={200}
+        height={100}
+        bigNumber={42}
+        headerFormatter={getNumberFormatter()}
+        headerFontSize={0.3}
+        subheaderFontSize={0.125}
+        subtitleFontSize={0.125}
+        subtitle=""
+        refs={{}}
+        headerAlignment={headerAlignment}

Review Comment:
   Added coverage for the outer chart `alignItems` in the plain and trendline 
layouts (Center and Right), alongside the text container. @sadpandajoe



-- 
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]

Reply via email to