Skip to content

Commit

Permalink
test: add conversation id
Browse files Browse the repository at this point in the history
  • Loading branch information
varshamenon4 committed Dec 13, 2024
1 parent 9876817 commit 3f91f14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/data/thunks.test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { v4 as uuidv4 } from 'uuid';
import { sendTrackEvent } from '@edx/frontend-platform/analytics';

import { fetchLearningAssistantChatSummary } from './api';
Expand All @@ -14,7 +15,7 @@ jest.mock('@edx/frontend-platform/auth', () => ({
}));

const mockState = {
learningAssistant: { messageList: [] },
learningAssistant: { messageList: [], conversationId: uuidv4() },
};

describe('Thunks unit tests', () => {
Expand All @@ -39,7 +40,7 @@ describe('Thunks unit tests', () => {
const eventName = 'edx.ui.lms.learning_assistant.message';
const properties = {
course_id: courseId,
id: undefined,
id: mockState.learningAssistant.conversationId,
role,
timestamp: mockDate.toString(),
user_id: userId,
Expand Down

0 comments on commit 3f91f14

Please sign in to comment.