Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic authored and astrobot-houston committed Dec 11, 2024
1 parent b01c74a commit d33c215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions packages/astro/test/astro-markdown.test.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -173,6 +173,5 @@ describe('Astro Markdown', () => {
after(async () => {
await devServer.stop();
});

});
});

0 comments on commit d33c215

Please sign in to comment.