diff options
author | 2024-12-11 10:22:32 +0000 | |
---|---|---|
committer | 2024-12-11 10:22:32 +0000 | |
commit | d33c2151a37e71ba727c54ef30339df859148612 (patch) | |
tree | 16f3830406dfc3a52424babc864c776ab5e18d3c | |
parent | b01c74aeccc4ec76b64fa75d163df58274b37970 (diff) | |
download | astro-d33c2151a37e71ba727c54ef30339df859148612.tar.gz astro-d33c2151a37e71ba727c54ef30339df859148612.tar.zst astro-d33c2151a37e71ba727c54ef30339df859148612.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/util.ts | 2 | ||||
-rw-r--r-- | packages/astro/test/astro-markdown.test.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/packages/astro/src/core/util.ts b/packages/astro/src/core/util.ts index 458fb9bdc..88e1de81a 100644 --- a/packages/astro/src/core/util.ts +++ b/packages/astro/src/core/util.ts @@ -19,7 +19,7 @@ export function isURL(value: unknown): value is URL { /** Check if a file is a markdown file based on its extension */ export function isMarkdownFile(fileId: string, option?: { suffix?: string }): boolean { // Strip query string - const id = fileId.split("?")[0]; + const id = fileId.split('?')[0]; const _suffix = option?.suffix ?? ''; for (let markdownFileExtension of SUPPORTED_MARKDOWN_FILE_EXTENSIONS) { if (id.endsWith(`${markdownFileExtension}${_suffix}`)) return true; diff --git a/packages/astro/test/astro-markdown.test.js b/packages/astro/test/astro-markdown.test.js index 0dae61ebd..9d4167341 100644 --- a/packages/astro/test/astro-markdown.test.js +++ b/packages/astro/test/astro-markdown.test.js @@ -1,5 +1,5 @@ import assert from 'node:assert/strict'; -import { before, describe, it, after } from 'node:test'; +import { after, before, describe, it } from 'node:test'; import * as cheerio from 'cheerio'; import { fixLineEndings, loadFixture } from './test-utils.js'; @@ -173,6 +173,5 @@ describe('Astro Markdown', () => { after(async () => { await devServer.stop(); }); - }); }); |