Format code with prettier
This commit is contained in:
parent
61cd297c18
commit
046ef964a9
@ -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");
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user