@@ -269,9 +269,15 @@ describe("r2", () => {
269269 ) ;
270270 await runWrangler ( "r2 bucket create testBucket" ) ;
271271 expect ( std . out ) . toMatchInlineSnapshot ( `
272- "Creating bucket 'testBucket'...
273- ✅ Created bucket 'testBucket' with default storage class of Standard."
274- ` ) ;
272+ "Creating bucket 'testBucket'...
273+ ✅ Created bucket 'testBucket' with default storage class of Standard.
274+
275+ Configure your Worker to write objects to this bucket:
276+
277+ [[r2_buckets]]
278+ bucket_name = \\"testBucket\\"
279+ binding = \\"testBucket\\""
280+ ` ) ;
275281 } ) ;
276282
277283 it ( "should create a bucket with the expected jurisdiction" , async ( ) => {
@@ -290,17 +296,29 @@ describe("r2", () => {
290296 ) ;
291297 await runWrangler ( "r2 bucket create testBucket -J eu" ) ;
292298 expect ( std . out ) . toMatchInlineSnapshot ( `
293- "Creating bucket 'testBucket (eu)'...
294- ✅ Created bucket 'testBucket (eu)' with default storage class of Standard."
295- ` ) ;
299+ "Creating bucket 'testBucket (eu)'...
300+ ✅ Created bucket 'testBucket (eu)' with default storage class of Standard.
301+
302+ Configure your Worker to write objects to this bucket:
303+
304+ [[r2_buckets]]
305+ bucket_name = \\"testBucket\\"
306+ binding = \\"testBucket\\""
307+ ` ) ;
296308 } ) ;
297309
298310 it ( "should create a bucket with the expected default storage class" , async ( ) => {
299311 await runWrangler ( "r2 bucket create testBucket -s InfrequentAccess" ) ;
300312 expect ( std . out ) . toMatchInlineSnapshot ( `
301- "Creating bucket 'testBucket'...
302- ✅ Created bucket 'testBucket' with default storage class of InfrequentAccess."
303- ` ) ;
313+ "Creating bucket 'testBucket'...
314+ ✅ Created bucket 'testBucket' with default storage class of InfrequentAccess.
315+
316+ Configure your Worker to write objects to this bucket:
317+
318+ [[r2_buckets]]
319+ bucket_name = \\"testBucket\\"
320+ binding = \\"testBucket\\""
321+ ` ) ;
304322 } ) ;
305323
306324 it ( "should error if storage class is invalid" , async ( ) => {
@@ -340,9 +358,15 @@ describe("r2", () => {
340358 ) ;
341359 await runWrangler ( "r2 bucket create testBucket --location weur" ) ;
342360 expect ( std . out ) . toMatchInlineSnapshot ( `
343- "Creating bucket 'testBucket'...
344- ✅ Created bucket 'testBucket' with location hint weur and default storage class of Standard."
345- ` ) ;
361+ "Creating bucket 'testBucket'...
362+ ✅ Created bucket 'testBucket' with location hint weur and default storage class of Standard.
363+
364+ Configure your Worker to write objects to this bucket:
365+
366+ [[r2_buckets]]
367+ bucket_name = \\"testBucket\\"
368+ binding = \\"testBucket\\""
369+ ` ) ;
346370 } ) ;
347371 } ) ;
348372
0 commit comments