mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
[ci] format
This commit is contained in:
parent
23094a1f48
commit
9b65e1b359
2 changed files with 4 additions and 3 deletions
|
@ -2,11 +2,10 @@ import fs from 'node:fs';
|
|||
import type { IncomingMessage, ServerResponse } from 'node:http';
|
||||
import path from 'node:path';
|
||||
import url from 'node:url';
|
||||
import { hasFileExtension } from '@astrojs/internal-helpers/path';
|
||||
import type { NodeApp } from 'astro/app/node';
|
||||
import send from 'send';
|
||||
import type { Options } from './types.js';
|
||||
import { hasFileExtension } from '@astrojs/internal-helpers/path';
|
||||
|
||||
|
||||
/**
|
||||
* Creates a Node.js http listener for static files and prerendered pages.
|
||||
|
|
|
@ -154,7 +154,9 @@ describe('Trailing slash', () => {
|
|||
});
|
||||
|
||||
it('Does not add trailing slash to subresource urls', async () => {
|
||||
const res = await fetch(`http://${server.host}:${server.port}/one.css`, { redirect: 'manual' });
|
||||
const res = await fetch(`http://${server.host}:${server.port}/one.css`, {
|
||||
redirect: 'manual',
|
||||
});
|
||||
const css = await res.text();
|
||||
|
||||
assert.equal(res.status, 200);
|
||||
|
|
Loading…
Add table
Reference in a new issue