Skip to content

Commit 6a0594c

Browse files
fix: formatting
1 parent 7718080 commit 6a0594c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

gui/src/components/StyledMarkdownPreview/SecureImageComponent.test.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ describe("SecureImageComponent", () => {
1212
render(<SecureImageComponent src="https://example.com/image.jpg" />);
1313

1414
expect(
15-
screen.getByText(/Image blocked for security.*External images can leak data/),
15+
screen.getByText(
16+
/Image blocked for security.*External images can leak data/,
17+
),
1618
).toBeInTheDocument();
1719
expect(screen.getByText("Load Image")).toBeInTheDocument();
1820
expect(screen.queryByRole("img")).not.toBeInTheDocument();
@@ -97,7 +99,9 @@ describe("SecureImageComponent", () => {
9799

98100
// Warning message should be gone
99101
expect(
100-
screen.queryByText(/Image blocked for security.*External images can leak data/),
102+
screen.queryByText(
103+
/Image blocked for security.*External images can leak data/,
104+
),
101105
).not.toBeInTheDocument();
102106
});
103107

gui/src/components/StyledMarkdownPreview/SecureImageComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ export const SecureImageComponent: React.FC<SecureImageComponentProps> = ({
139139
return (
140140
<ImagePlaceholder>
141141
<WarningText>
142-
Image blocked for security. External images can leak data through URL parameters. Click to load if you trust the source.
142+
Image blocked for security. External images can leak data through URL
143+
parameters. Click to load if you trust the source.
143144
</WarningText>
144145

145146
<UrlDisplay>

0 commit comments

Comments
 (0)