File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1530,15 +1530,19 @@ describe('storage', function () {
1530
1530
it ( 'should create a bucket without hierarchical namespace enabled (implicit)' , async ( ) => {
1531
1531
await storage . createBucket ( bucket . name ) ;
1532
1532
const [ metadata ] = await bucket . getMetadata ( ) ;
1533
- assert . strictEqual ( metadata . hierarchicalNamespace , undefined ) ;
1533
+ assert (
1534
+ [ undefined , false ] . includes ( metadata ?. hierarchicalNamespace ?. enabled )
1535
+ ) ;
1534
1536
} ) ;
1535
1537
1536
1538
it ( 'should create a bucket without hierarchical namespace enabled (explicit)' , async ( ) => {
1537
1539
await storage . createBucket ( bucket . name , {
1538
1540
hierarchicalNamespace : { enabled : false } ,
1539
1541
} ) ;
1540
1542
const [ metadata ] = await bucket . getMetadata ( ) ;
1541
- assert . strictEqual ( metadata . hierarchicalNamespace , undefined ) ;
1543
+ assert (
1544
+ [ undefined , false ] . includes ( metadata ?. hierarchicalNamespace ?. enabled )
1545
+ ) ;
1542
1546
} ) ;
1543
1547
1544
1548
it ( 'should create a bucket with hierarchical namespace enabled' , async ( ) => {
You can’t perform that action at this time.
0 commit comments