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 Feb 12, 2025
1 parent 23094a1 commit 9b65e1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/integrations/node/src/serve-static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion packages/integrations/node/test/trailing-slash.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9b65e1b

Please sign in to comment.