|
3 | 3 | * SPDX-License-Identifier: Apache-2.0 |
4 | 4 | */ |
5 | 5 | import assert from 'assert' |
6 | | -import { ChatItemType } from '@aws/mynah-ui' |
7 | 6 | import { TabDataGenerator } from '../../../../../amazonq/webview/ui/tabs/generator' |
8 | 7 | import { TabType } from '../../../../../amazonq/webview/ui/storages/tabsStorage' |
9 | 8 | import { qChatIntroMessageForSMUS } from '../../../../../amazonq/webview/ui/tabs/constants' |
@@ -35,10 +34,7 @@ describe('TabDataGenerator', () => { |
35 | 34 | const result = tabGenerator.getTabData('cwc', true, 'TestTask', 'SageMakerUnifiedStudio') |
36 | 35 |
|
37 | 36 | assert.strictEqual(result.chatItems?.length, 2) |
38 | | - assert.deepStrictEqual(result.chatItems?.[0], { |
39 | | - type: ChatItemType.ANSWER, |
40 | | - body: qChatIntroMessageForSMUS, |
41 | | - }) |
| 37 | + assert.strictEqual(result.chatItems?.[0].body, qChatIntroMessageForSMUS) |
42 | 38 | }) |
43 | 39 |
|
44 | 40 | it('returns default intro message for non-SMUS service', () => { |
@@ -67,7 +63,6 @@ describe('TabDataGenerator', () => { |
67 | 63 | assert.ok(Array.isArray(result.quickActionCommands)) |
68 | 64 | assert.ok(typeof result.promptInputPlaceholder === 'string') |
69 | 65 | assert.ok(Array.isArray(result.contextCommands)) |
70 | | - assert.ok(result.chatItems?.some((item) => item.type === ChatItemType.ANSWER)) |
71 | 66 | }) |
72 | 67 | }) |
73 | 68 | }) |
0 commit comments