Format code with prettier

This commit is contained in:
Lina Tawfik
2025-05-28 17:30:42 -07:00
parent 61cd297c18
commit 046ef964a9
3 changed files with 12 additions and 10 deletions

View File

@@ -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"}

View File

@@ -3,4 +3,3 @@
"mode": "gfm", "mode": "gfm",
"context": "anthropics/claude-code-action" "context": "anthropics/claude-code-action"
} }
EOF < /dev/null

View File

@@ -44,9 +44,9 @@ describe("stripMarkdownImageAltText", () => {
expect(stripMarkdownImageAltText("![example alt text](image.png)")).toBe( expect(stripMarkdownImageAltText("![example alt text](image.png)")).toBe(
"![](image.png)", "![](image.png)",
); );
expect(stripMarkdownImageAltText("Text ![description](pic.jpg) more text")).toBe( expect(
"Text ![](pic.jpg) more text", stripMarkdownImageAltText("Text ![description](pic.jpg) more text"),
); ).toBe("Text ![](pic.jpg) 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",
); );
}); });
}); });