mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
Format code with prettier
This commit is contained in:
@@ -1 +1,2 @@
|
||||
{"message":"Problems parsing JSON","documentation_url":"https://docs.github.com/rest/markdown/markdown#render-a-markdown-document","status":"400"}
|
||||
{"message":"Problems parsing
|
||||
JSON","documentation_url":"https://docs.github.com/rest/markdown/markdown#render-a-markdown-document","status":"400"}
|
||||
|
||||
@@ -3,4 +3,3 @@
|
||||
"mode": "gfm",
|
||||
"context": "anthropics/claude-code-action"
|
||||
}
|
||||
EOF < /dev/null
|
||||
@@ -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