mirror of
https://github.com/apache/superset.git
synced 2026-04-25 19:14:27 +00:00
chore: Adds theme object to chart properties (#19951)
This commit is contained in:
committed by
GitHub
parent
5dd3ea154b
commit
e9032e95ec
@@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { ChartProps } from '@superset-ui/core';
|
||||
import { ChartProps, supersetTheme } from '@superset-ui/core';
|
||||
import transformProps from '../../src/Tree/transformProps';
|
||||
|
||||
describe('EchartsTree transformProps', () => {
|
||||
@@ -34,6 +34,7 @@ describe('EchartsTree transformProps', () => {
|
||||
formData,
|
||||
width: 800,
|
||||
height: 600,
|
||||
theme: supersetTheme,
|
||||
};
|
||||
it('should transform when parent present before child', () => {
|
||||
const queriesData = [
|
||||
@@ -187,6 +188,7 @@ describe('EchartsTree transformProps', () => {
|
||||
formData,
|
||||
width: 800,
|
||||
height: 600,
|
||||
theme: supersetTheme,
|
||||
};
|
||||
const queriesData = [
|
||||
{
|
||||
@@ -266,6 +268,7 @@ describe('EchartsTree transformProps', () => {
|
||||
formData,
|
||||
width: 800,
|
||||
height: 600,
|
||||
theme: supersetTheme,
|
||||
};
|
||||
const queriesData = [
|
||||
{
|
||||
@@ -347,6 +350,7 @@ describe('EchartsTree transformProps', () => {
|
||||
formData,
|
||||
width: 800,
|
||||
height: 600,
|
||||
theme: supersetTheme,
|
||||
};
|
||||
const queriesData = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user