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:
@@ -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",
|
"mode": "gfm",
|
||||||
"context": "anthropics/claude-code-action"
|
"context": "anthropics/claude-code-action"
|
||||||
}
|
}
|
||||||
EOF < /dev/null
|
|
||||||
@@ -44,9 +44,9 @@ describe("stripMarkdownImageAltText", () => {
|
|||||||
expect(stripMarkdownImageAltText("")).toBe(
|
expect(stripMarkdownImageAltText("")).toBe(
|
||||||
"",
|
"",
|
||||||
);
|
);
|
||||||
expect(stripMarkdownImageAltText("Text  more text")).toBe(
|
expect(
|
||||||
"Text  more text",
|
stripMarkdownImageAltText("Text  more text"),
|
||||||
);
|
).toBe("Text  more text");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should handle multiple images", () => {
|
it("should handle multiple images", () => {
|
||||||
@@ -83,9 +83,9 @@ describe("stripMarkdownLinkTitles", () => {
|
|||||||
|
|
||||||
describe("stripHiddenAttributes", () => {
|
describe("stripHiddenAttributes", () => {
|
||||||
it("should remove alt attributes", () => {
|
it("should remove alt attributes", () => {
|
||||||
expect(stripHiddenAttributes('<img alt="example text" src="pic.jpg">')).toBe(
|
expect(
|
||||||
'<img src="pic.jpg">',
|
stripHiddenAttributes('<img alt="example text" src="pic.jpg">'),
|
||||||
);
|
).toBe('<img src="pic.jpg">');
|
||||||
expect(stripHiddenAttributes("<img alt='example' src=\"pic.jpg\">")).toBe(
|
expect(stripHiddenAttributes("<img alt='example' src=\"pic.jpg\">")).toBe(
|
||||||
'<img src="pic.jpg">',
|
'<img src="pic.jpg">',
|
||||||
);
|
);
|
||||||
@@ -261,7 +261,9 @@ describe("sanitizeContent", () => {
|
|||||||
|
|
||||||
describe("stripHtmlComments (legacy)", () => {
|
describe("stripHtmlComments (legacy)", () => {
|
||||||
it("should remove HTML comments", () => {
|
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("<!-- comment -->Text")).toBe("Text");
|
||||||
expect(stripHtmlComments("Text<!-- comment -->")).toBe("Text");
|
expect(stripHtmlComments("Text<!-- comment -->")).toBe("Text");
|
||||||
});
|
});
|
||||||
@@ -271,4 +273,4 @@ describe("stripHtmlComments (legacy)", () => {
|
|||||||
"Hello World",
|
"Hello World",
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user