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

(cherry picked from commit 6f5778273e)
This commit is contained in:
Stephen Liu
2022-03-28 10:20:06 +08:00
committed by Ville Brofeldt
parent 0c75d9ede0
commit fb0ae24c6b
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', () => {