Skip to content

Commit

Permalink
Added query to handle the test case issue in Mock.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankit-Keshari-Vituity committed Mar 15, 2022
1 parent f73ba2f commit 6bc385f
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions datahub-web-react/src/Mocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2967,4 +2967,69 @@ export const mocks = [
},
},
},
{
request: {
query: GetSearchResultsForMultipleDocument,
variables: {
input: {
types: [],
query: '*',
start: 0,
count: 20,
filters: [],
},
},
},
result: {
data: {
__typename: 'Query',
searchAcrossEntities: {
__typename: 'SearchResults',
start: 0,
count: 1,
total: 1,
searchResults: [
{
entity: {
__typename: 'Dataset',
...dataset3,
},
matchedFields: [],
insights: [],
},
{
entity: {
__typename: 'Dataset',
...dataset4,
},
matchedFields: [],
insights: [],
},
],
facets: [
{
field: 'origin',
displayName: 'origin',
aggregations: [
{
value: 'PROD',
count: 3,
entity: null,
},
],
},
{
field: 'platform',
displayName: 'platform',
aggregations: [
{ value: 'hdfs', count: 1, entity: null },
{ value: 'mysql', count: 1, entity: null },
{ value: 'kafka', count: 1, entity: null },
],
},
],
},
} as GetSearchResultsForMultipleQuery,
},
},
];

0 comments on commit 6bc385f

Please sign in to comment.