chore: add type checking in plugin test directory (#19387)

This commit is contained in:
Stephen Liu
2022-03-28 10:20:06 +08:00
committed by GitHub
parent 5ae7e54999
commit 6f5778273e
21 changed files with 91 additions and 56 deletions

View File

@@ -18,9 +18,10 @@
*/
import buildQuery from '../../src/plugin/buildQuery';
import { PivotTableQueryFormData } from '../../src/types';
describe('PivotTableChart buildQuery', () => {
const formData = {
const formData: PivotTableQueryFormData = {
groupbyRows: ['row1', 'row2'],
groupbyColumns: ['col1', 'col2'],
metrics: ['metric1', 'metric2'],
@@ -46,6 +47,7 @@ describe('PivotTableChart buildQuery', () => {
setDataMask: () => {},
legacy_order_by: 'count',
order_desc: true,
margin: 0,
};
it('should build groupby with series in form data', () => {