-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gh-59] add unit test for validating that filterUpdate event is calle…
…d with correct params when group type select changes
- Loading branch information
1 parent
e81028a
commit cd7b461
Showing
3 changed files
with
223 additions
and
3 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
199 changes: 199 additions & 0 deletions
199
packages/vue3/src/tests/__snapshots__/VueVisualFilter.test.js.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,199 @@ | ||
// Vitest Snapshot v1 | ||
|
||
exports[`expect \`onFilterUpdate\` event to be called with correct parameters when changing group type select 1`] = ` | ||
[ | ||
[ | ||
{ | ||
"data": [ | ||
{ | ||
"name": "First Name", | ||
"type": "nominal", | ||
"values": [ | ||
"Foo", | ||
"Fizz", | ||
], | ||
}, | ||
{ | ||
"name": "Last Name", | ||
"type": "nominal", | ||
"values": [ | ||
"Bar", | ||
"Buzz", | ||
], | ||
}, | ||
{ | ||
"name": "Age", | ||
"type": "numeric", | ||
"values": [ | ||
18, | ||
19, | ||
], | ||
}, | ||
], | ||
"filter": { | ||
"filters": [], | ||
"groupType": "not and", | ||
"type": "group", | ||
}, | ||
}, | ||
], | ||
] | ||
`; | ||
|
||
exports[`expect \`onFilterUpdate\` event to be called with correct parameters when changing group type select 2`] = ` | ||
[ | ||
[ | ||
{ | ||
"data": [ | ||
{ | ||
"name": "First Name", | ||
"type": "nominal", | ||
"values": [ | ||
"Foo", | ||
"Fizz", | ||
], | ||
}, | ||
{ | ||
"name": "Last Name", | ||
"type": "nominal", | ||
"values": [ | ||
"Bar", | ||
"Buzz", | ||
], | ||
}, | ||
{ | ||
"name": "Age", | ||
"type": "numeric", | ||
"values": [ | ||
18, | ||
19, | ||
], | ||
}, | ||
], | ||
"filter": { | ||
"filters": [], | ||
"groupType": "not and", | ||
"type": "group", | ||
}, | ||
}, | ||
], | ||
[ | ||
{ | ||
"data": [ | ||
{ | ||
"name": "First Name", | ||
"type": "nominal", | ||
"values": [], | ||
}, | ||
{ | ||
"name": "Last Name", | ||
"type": "nominal", | ||
"values": [], | ||
}, | ||
{ | ||
"name": "Age", | ||
"type": "numeric", | ||
"values": [], | ||
}, | ||
], | ||
"filter": { | ||
"filters": [], | ||
"groupType": "or", | ||
"type": "group", | ||
}, | ||
}, | ||
], | ||
] | ||
`; | ||
|
||
exports[`expect \`onFilterUpdate\` event to be called with correct parameters when changing group type select 3`] = ` | ||
[ | ||
[ | ||
{ | ||
"data": [ | ||
{ | ||
"name": "First Name", | ||
"type": "nominal", | ||
"values": [ | ||
"Foo", | ||
"Fizz", | ||
], | ||
}, | ||
{ | ||
"name": "Last Name", | ||
"type": "nominal", | ||
"values": [ | ||
"Bar", | ||
"Buzz", | ||
], | ||
}, | ||
{ | ||
"name": "Age", | ||
"type": "numeric", | ||
"values": [ | ||
18, | ||
19, | ||
], | ||
}, | ||
], | ||
"filter": { | ||
"filters": [], | ||
"groupType": "not and", | ||
"type": "group", | ||
}, | ||
}, | ||
], | ||
[ | ||
{ | ||
"data": [ | ||
{ | ||
"name": "First Name", | ||
"type": "nominal", | ||
"values": [], | ||
}, | ||
{ | ||
"name": "Last Name", | ||
"type": "nominal", | ||
"values": [], | ||
}, | ||
{ | ||
"name": "Age", | ||
"type": "numeric", | ||
"values": [], | ||
}, | ||
], | ||
"filter": { | ||
"filters": [], | ||
"groupType": "or", | ||
"type": "group", | ||
}, | ||
}, | ||
], | ||
[ | ||
{ | ||
"data": [ | ||
{ | ||
"name": "First Name", | ||
"type": "nominal", | ||
"values": [], | ||
}, | ||
{ | ||
"name": "Last Name", | ||
"type": "nominal", | ||
"values": [], | ||
}, | ||
{ | ||
"name": "Age", | ||
"type": "numeric", | ||
"values": [], | ||
}, | ||
], | ||
"filter": { | ||
"filters": [], | ||
"groupType": "not or", | ||
"type": "group", | ||
}, | ||
}, | ||
], | ||
] | ||
`; |
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