Skip to content

Commit

Permalink
test: 增加单测
Browse files Browse the repository at this point in the history
  • Loading branch information
wjgogogo committed Dec 20, 2023
1 parent 04942ca commit f0159ad
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit f0159ad

Please sign in to comment.