Skip to content

Commit

Permalink
chore: adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soleksy-splunk committed Oct 15, 2024
1 parent 6d76fa1 commit f4c0d79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/src/pages/Configuration/tests/ConfigContext.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jest.mock('@splunk/search-job', () => ({
create: () => ({
getResults: () => ({
subscribe: (
callbackFunction: (params: { results: { product_type: string }[] }) => void
callbackFunction: (params: { results: { instance_type: string }[] }) => void
) => {
callbackFunction({ results: [{ product_type: 'cloud' }] });
callbackFunction({ results: [{ instance_type: 'cloud' }] });
return { unsubscribe: () => {} };
},
}),
Expand Down
4 changes: 2 additions & 2 deletions ui/src/pages/Input/tests/InputContext.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jest.mock('@splunk/search-job', () => ({
create: () => ({
getResults: () => ({
subscribe: (
callbackFunction: (params: { results: { product_type: string }[] }) => void
callbackFunction: (params: { results: { instance_type: string }[] }) => void
) => {
callbackFunction({ results: [{ product_type: 'cloud' }] });
callbackFunction({ results: [{ instance_type: 'cloud' }] });
return { unsubscribe: () => {} };
},
}),
Expand Down

0 comments on commit f4c0d79

Please sign in to comment.