Skip to content

Commit e84d6c7

Browse files
fix unit tests
1 parent 9046061 commit e84d6c7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

frontend/src/app/components/dashboard/db-table-view/db-table-ai-panel/db-table-ai-panel.component.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe('DbTableAiPanelComponent', () => {
3232

3333
const mockTableStateService = {
3434
aiPanelCast: of(false),
35+
aiPanelExpandedCast: of(false),
3536
handleViewAIpanel: vi.fn(),
3637
};
3738

@@ -63,9 +64,9 @@ describe('DbTableAiPanelComponent', () => {
6364
expect(component.tableName).toBe('users');
6465
});
6566

66-
it('should have default AI request suggestions', () => {
67-
expect(component.aiRequestSuggestions.length).toBeGreaterThan(0);
68-
expect(component.aiRequestSuggestions).toContain('How many records were created last month?');
67+
it('should have default suggestion categories', () => {
68+
expect(component.suggestionCategories.length).toBeGreaterThan(0);
69+
expect(component.suggestionCategories[0].title).toBe('Explore');
6970
});
7071

7172
it('should update character count on keydown', () => {

0 commit comments

Comments
 (0)