File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed
packages/astro/test/units Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments