Skip to content

AI Assistant: improve utils test coverage#33622

Open
dmirgaev wants to merge 2 commits into
DevExpress:26_1from
dmirgaev:26_1__ai_assistant_remarks
Open

AI Assistant: improve utils test coverage#33622
dmirgaev wants to merge 2 commits into
DevExpress:26_1from
dmirgaev:26_1__ai_assistant_remarks

Conversation

@dmirgaev
Copy link
Copy Markdown
Contributor

No description provided.

@dmirgaev dmirgaev requested a review from Raushen May 18, 2026 15:58
@dmirgaev dmirgaev self-assigned this May 18, 2026
@dmirgaev dmirgaev requested a review from a team as a code owner May 18, 2026 15:58
Copilot AI review requested due to automatic review settings May 18, 2026 15:58
@dmirgaev dmirgaev added the 26_1 label May 18, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves test coverage around AI Assistant grid command key utilities and makes a helper internal to its module.

Changes:

  • Adds Jest coverage for normalizeKey behavior across primitive and composite keys.
  • Makes compositeKeyToObject private since it is only used by normalizeKey.
  • Shortens documentation for expandTypeArraysToAnyOf.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/utils.ts Updates the JSDoc for schema type-array expansion.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/utils.ts Makes the composite-key conversion helper module-private.
packages/devextreme/js/__internal/grids/grid_core/ai_assistant/commands/__tests__/utils.test.ts Adds normalizeKey unit tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants