Skip to content

Commit d2e4896

Browse files
committed
fix typescript error
1 parent 02e3f1f commit d2e4896

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/devextreme/js/__internal/grids/grid_core/ai_chat/ai_chat.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,8 +940,8 @@ describe('AIChat', () => {
940940

941941
describe('getUserId', () => {
942942
it('should return user id from chat instance', () => {
943-
mockChatInstance.option.mockImplementation((name: string) => {
944-
if (name === 'user.id') return 'user-123';
943+
mockChatInstance.option.mockImplementation((...args: unknown[]) => {
944+
if (args[0] === 'user.id') return 'user-123';
945945
return undefined;
946946
});
947947

0 commit comments

Comments
 (0)