mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 23:14:13 +08:00
Format code with prettier
This commit is contained in:
@@ -44,9 +44,9 @@ describe("stripMarkdownImageAltText", () => {
|
||||
expect(stripMarkdownImageAltText("")).toBe(
|
||||
"",
|
||||
);
|
||||
expect(stripMarkdownImageAltText("Text  more text")).toBe(
|
||||
"Text  more text",
|
||||
);
|
||||
expect(
|
||||
stripMarkdownImageAltText("Text  more text"),
|
||||
).toBe("Text  more text");
|
||||
});
|
||||
|
||||
it("should handle multiple images", () => {
|
||||
@@ -83,9 +83,9 @@ describe("stripMarkdownLinkTitles", () => {
|
||||
|
||||
describe("stripHiddenAttributes", () => {
|
||||
it("should remove alt attributes", () => {
|
||||
expect(stripHiddenAttributes('<img alt="example text" src="pic.jpg">')).toBe(
|
||||
'<img src="pic.jpg">',
|
||||
);
|
||||
expect(
|
||||
stripHiddenAttributes('<img alt="example text" src="pic.jpg">'),
|
||||
).toBe('<img src="pic.jpg">');
|
||||
expect(stripHiddenAttributes("<img alt='example' src=\"pic.jpg\">")).toBe(
|
||||
'<img src="pic.jpg">',
|
||||
);
|
||||
@@ -261,7 +261,9 @@ describe("sanitizeContent", () => {
|
||||
|
||||
describe("stripHtmlComments (legacy)", () => {
|
||||
it("should remove HTML comments", () => {
|
||||
expect(stripHtmlComments("Hello <!-- example -->World")).toBe("Hello World");
|
||||
expect(stripHtmlComments("Hello <!-- example -->World")).toBe(
|
||||
"Hello World",
|
||||
);
|
||||
expect(stripHtmlComments("<!-- comment -->Text")).toBe("Text");
|
||||
expect(stripHtmlComments("Text<!-- comment -->")).toBe("Text");
|
||||
});
|
||||
@@ -271,4 +273,4 @@ describe("stripHtmlComments (legacy)", () => {
|
||||
"Hello World",
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user