diff --git a/packages/s2-core/__tests__/unit/data-set/pivot-data-set-row-value-spec.ts b/packages/s2-core/__tests__/unit/data-set/pivot-data-set-row-value-spec.ts index 82fbaf2871..c721ac9e44 100644 --- a/packages/s2-core/__tests__/unit/data-set/pivot-data-set-row-value-spec.ts +++ b/packages/s2-core/__tests__/unit/data-set/pivot-data-set-row-value-spec.ts @@ -219,6 +219,14 @@ describe('Pivot Mode Test When Value In Row', () => { ).toHaveLength(32); }); + test(`getMultiData will return empty array when query can't be found`, () => { + const specialQuery = { + province: '浙江省123', + type: '家具', + }; + expect(dataSet.getMultiData(specialQuery)).toHaveLength(0); + }); + test('getDimensionValues function', () => { // without query expect(dataSet.getDimensionValues('province')).toEqual([