Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
Signed-off-by: Heng Qian <[email protected]>
  • Loading branch information
qianheng-aws committed Sep 4, 2024
1 parent d2278f1 commit a0e1a89
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('GeneratePopoverBody', () => {
contextProvider: jest.fn(),
suggestions: ['Test summarization question'],
datasourceId: 'test-datasource',
key: 'test-key',
key: 'alerts',
};

const closePopoverMock = jest.fn();
Expand All @@ -49,7 +49,7 @@ describe('GeneratePopoverBody', () => {
case SUMMARY_ASSISTANT_API.SUMMARIZE:
value = {
summary: 'Generated summary content',
insightAgentId: 'insight_agent_id',
insightAgentIdExists: true,
};
break;

Expand Down Expand Up @@ -122,7 +122,7 @@ describe('GeneratePopoverBody', () => {
case SUMMARY_ASSISTANT_API.SUMMARIZE:
value = {
summary: 'Generated summary content',
insightAgentId: undefined,
insightAgentIdExists: false,
};
break;

Expand Down Expand Up @@ -192,7 +192,7 @@ describe('GeneratePopoverBody', () => {
case SUMMARY_ASSISTANT_API.SUMMARIZE:
value = {
summary: 'Generated summary content',
insightAgentId: 'insight_agent_id',
insightAgentIdExists: true,
};
break;

Expand Down

0 comments on commit a0e1a89

Please sign in to comment.