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

[ci] format

This commit is contained in:
Andrés Correa Casablanca 2024-03-19 15:44:07 +00:00 committed by astrobot-houston
parent 28e33a2f9c
commit 4268d389fc
2 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import send from 'send';
import type { Options } from './types.js'; import type { Options } from './types.js';
// check for a dot followed by a extension made up of lowercase characters // check for a dot followed by a extension made up of lowercase characters
const isSubresourceRegex = /.+\.[a-z]+$/i const isSubresourceRegex = /.+\.[a-z]+$/i;
/** /**
* Creates a Node.js http listener for static files and prerendered pages. * Creates a Node.js http listener for static files and prerendered pages.

View file

@ -1,5 +1,5 @@
import { after, before, describe, it } from 'node:test';
import * as assert from 'node:assert/strict'; import * as assert from 'node:assert/strict';
import { after, before, describe, it } from 'node:test';
import * as cheerio from 'cheerio'; import * as cheerio from 'cheerio';
import nodejs from '../dist/index.js'; import nodejs from '../dist/index.js';
import { loadFixture } from './test-utils.js'; import { loadFixture } from './test-utils.js';
@ -84,7 +84,7 @@ describe('Trailing slash', () => {
assert.equal(res.status, 200); assert.equal(res.status, 200);
assert.equal(css, 'h1 { color: red; }\n'); assert.equal(css, 'h1 { color: red; }\n');
}) });
}); });
describe('Without base', async () => { describe('Without base', async () => {
before(async () => { before(async () => {
@ -149,7 +149,7 @@ describe('Trailing slash', () => {
assert.equal(res.status, 200); assert.equal(res.status, 200);
assert.equal(css, 'h1 { color: red; }\n'); assert.equal(css, 'h1 { color: red; }\n');
}) });
}); });
}); });
describe('Never', async () => { describe('Never', async () => {