-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,463 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 121 additions & 0 deletions
121
packages/s2-core/__tests__/unit/data-set/__snapshots__/pivot-data-set-total-spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 1`] = ` | ||
Array [ | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 7789, | ||
"city": "杭州市", | ||
"number": 7789, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 2367, | ||
"city": "绍兴市", | ||
"number": 2367, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 3877, | ||
"city": "宁波市", | ||
"number": 3877, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 4342, | ||
"city": "舟山市", | ||
"number": 4342, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 2`] = `Array []`; | ||
|
||
exports[`Pivot Dataset Total Test test for total with dimension group get correct MultiData when query need to be processed 3`] = ` | ||
Array [ | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 7789, | ||
"city": "杭州市", | ||
"number": 7789, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 2367, | ||
"city": "绍兴市", | ||
"number": 2367, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 3877, | ||
"city": "宁波市", | ||
"number": 3877, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 4342, | ||
"city": "舟山市", | ||
"number": 4342, | ||
"province": "浙江省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 1723, | ||
"city": "成都市", | ||
"number": 1723, | ||
"province": "四川省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 1822, | ||
"city": "绵阳市", | ||
"number": 1822, | ||
"province": "四川省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 1943, | ||
"city": "南充市", | ||
"number": 1943, | ||
"province": "四川省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
Object { | ||
"$$extra$$": "number", | ||
"$$value$$": 2330, | ||
"city": "乐山市", | ||
"number": 2330, | ||
"province": "四川省", | ||
"sub_type": "桌子", | ||
"type": "家具", | ||
}, | ||
] | ||
`; |
Oops, something went wrong.