0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -05:00

[ci] format

This commit is contained in:
Matt Kane 2025-03-03 10:57:12 +00:00 committed by astrobot-houston
parent 50e2e0b374
commit 21c233c3c9
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,5 @@
import type { MarkdownHeading } from '@astrojs/markdown-remark';
import { escape } from 'html-escaper';
import { Traverse } from 'neotraverse/modern';
import pLimit from 'p-limit';
import { ZodIssueCode, z } from 'zod';
@ -6,7 +7,6 @@ import type { GetImageResult, ImageMetadata } from '../assets/types.js';
import { imageSrcToImportId } from '../assets/utils/resolveImports.js';
import { AstroError, AstroErrorData, AstroUserError } from '../core/errors/index.js';
import { prependForwardSlash } from '../core/path.js';
import { escape } from 'html-escaper';
import {
type AstroComponentFactory,

View file

@ -253,9 +253,9 @@ describe('Content Layer', () => {
});
it('escapes alt text in markdown', async () => {
assert.equal($('img[alt^="xss"]').attr('alt'), 'xss "><script>alert(1)</script>');
assert.equal($('img[alt^="xss"]').attr('alt'), 'xss "><script>alert(1)</script>');
});
it('returns a referenced entry', async () => {
assert.ok(json.hasOwnProperty('referencedEntry'));
assert.deepEqual(json.referencedEntry, {