mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
b01c74aecc
commit
d33c2151a3
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue