From f0159ada70af51d3b8a5f095d601c090fd0419f3 Mon Sep 17 00:00:00 2001 From: wjgogogo <906626481@qq.com> Date: Wed, 20 Dec 2023 11:37:30 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=A2=9E=E5=8A=A0=E5=8D=95=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unit/data-set/pivot-data-set-row-value-spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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([