Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy authored and astrobot-houston committed Mar 19, 2024
1 parent 28e33a2 commit 4268d38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/integrations/node/src/serve-static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions packages/integrations/node/test/trailing-slash.test.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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 () => {
Expand Down Expand Up @@ -149,7 +149,7 @@ describe('Trailing slash', () => {

assert.equal(res.status, 200);
assert.equal(css, 'h1 { color: red; }\n');
})
});
});
});
describe('Never', async () => {
Expand Down

0 comments on commit 4268d38

Please sign in to comment.