From 4268d389fcb4de852bf7bcbb65fabceec395a849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Correa=20Casablanca?= Date: Tue, 19 Mar 2024 15:44:07 +0000 Subject: [PATCH] [ci] format --- packages/integrations/node/src/serve-static.ts | 2 +- packages/integrations/node/test/trailing-slash.test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/integrations/node/src/serve-static.ts b/packages/integrations/node/src/serve-static.ts index 811f748a47..0ec129d9f9 100644 --- a/packages/integrations/node/src/serve-static.ts +++ b/packages/integrations/node/src/serve-static.ts @@ -7,7 +7,7 @@ import send from 'send'; import type { Options } from './types.js'; // 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. diff --git a/packages/integrations/node/test/trailing-slash.test.js b/packages/integrations/node/test/trailing-slash.test.js index 64fff19645..79d5d247a0 100644 --- a/packages/integrations/node/test/trailing-slash.test.js +++ b/packages/integrations/node/test/trailing-slash.test.js @@ -1,5 +1,5 @@ -import { after, before, describe, it } from 'node:test'; import * as assert from 'node:assert/strict'; +import { after, before, describe, it } from 'node:test'; import * as cheerio from 'cheerio'; import nodejs from '../dist/index.js'; import { loadFixture } from './test-utils.js'; @@ -84,7 +84,7 @@ describe('Trailing slash', () => { assert.equal(res.status, 200); assert.equal(css, 'h1 { color: red; }\n'); - }) + }); }); describe('Without base', async () => { before(async () => { @@ -149,7 +149,7 @@ describe('Trailing slash', () => { assert.equal(res.status, 200); assert.equal(css, 'h1 { color: red; }\n'); - }) + }); }); }); describe('Never', async () => {