Skip to content

Commit 048e4dc

Browse files
Princesseuhastrobot-houston
authored andcommitted
[ci] format
1 parent 9e9c528 commit 048e4dc

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

packages/astro/test/units/remote-pattern.test.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,18 +138,21 @@ describe('remote-pattern', () => {
138138

139139
describe('remote is allowed', () => {
140140
it('allows remote URLs based on patterns', async () => {
141-
const patterns = {domains: [], remotePatterns: [
142-
{
143-
protocol: 'https',
144-
hostname: '**.astro.build',
145-
pathname: '/en/**',
146-
},
147-
{
148-
protocol: 'http',
149-
hostname: 'preview.docs.astro.build',
150-
port: '8080',
151-
},
152-
]};
141+
const patterns = {
142+
domains: [],
143+
remotePatterns: [
144+
{
145+
protocol: 'https',
146+
hostname: '**.astro.build',
147+
pathname: '/en/**',
148+
},
149+
{
150+
protocol: 'http',
151+
hostname: 'preview.docs.astro.build',
152+
port: '8080',
153+
},
154+
],
155+
};
153156

154157
assert.equal(isRemoteAllowed(url1, patterns), true);
155158
assert.equal(isRemoteAllowed(url2, patterns), true);

0 commit comments

Comments
 (0)