Skip to content

Commit 409a2ae

Browse files
author
Shreyas-Microsoft
committed
fic document test
1 parent e846e1e commit 409a2ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/frontend/src/pages/document/Document.test.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ describe('Document Component', () => {
3434
(documentRead as jest.Mock).mockResolvedValue({
3535
json: jest.fn().mockResolvedValue(mockDocumentData),
3636
});
37-
37+
3838
render(<Document />);
39-
39+
4040
await waitFor(() => {
41-
expect(screen.getByText(mockDocumentData.full_content)).toBeInTheDocument();
41+
expect(screen.getByText(mockDocumentData.content)).toBeInTheDocument(); // Use `content`
4242
});
4343
});
4444

0 commit comments

Comments
 (0)