Skip to content

Commit

Permalink
feat: fix unit test error (#7726) (#7727)
Browse files Browse the repository at this point in the history
(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
1 parent 6877bea commit 4cdfcf4
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 4cdfcf4

Please sign in to comment.