Skip to content

Commit

Permalink
feat: fix unit test error (opensearch-project#7726) (opensearch-proje…
Browse files Browse the repository at this point in the history
…ct#7727)

(cherry picked from commit 7161a62)

Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and Qxisylolo committed Aug 20, 2024
1 parent 2a2df1c commit 29d4308
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ describe('WorkspaceDetail', () => {
description: '<script>alert("description")</script>',
});
const { getByText } = render(WorkspaceDetailPage({ workspacesService: workspaceService }));
expect(getByText('<script>alert("name")</script>')).toBeInTheDocument();
expect(getByText('<script>alert("description")</script>')).toBeInTheDocument();
expect(alertSpy).toBeCalledTimes(0);
alertSpy.mockRestore();
Expand Down

0 comments on commit 29d4308

Please sign in to comment.