@@ -5180,26 +5180,26 @@ describe('File', () => {
5180
5180
const result = File . from ( gsUrl , STORAGE ) ;
5181
5181
5182
5182
assert ( result ) ;
5183
- assert ( result . bucket . name , 'mybucket' ) ;
5184
- assert ( result . name , 'myfile' ) ;
5183
+ assert . strictEqual ( result . bucket . name , 'mybucket' ) ;
5184
+ assert . strictEqual ( result . name , 'myfile' ) ;
5185
5185
} ) ;
5186
5186
5187
5187
it ( 'should create a File object from a gs:// formatted URL including a folder' , ( ) => {
5188
5188
const gsUrl = 'gs://mybucket/myfolder/myfile' ;
5189
5189
const result = File . from ( gsUrl , STORAGE ) ;
5190
5190
5191
5191
assert ( result ) ;
5192
- assert ( result . bucket . name , 'mybucket' ) ;
5193
- assert ( result . name , 'myfolder/myfile' ) ;
5192
+ assert . strictEqual ( result . bucket . name , 'mybucket' ) ;
5193
+ assert . strictEqual ( result . name , 'myfolder/myfile' ) ;
5194
5194
} ) ;
5195
5195
5196
5196
it ( 'should create a File object from a https:// formatted URL' , ( ) => {
5197
5197
const httpsUrl = 'https://storage.googleapis.com/mybucket/myfile' ;
5198
5198
const result = File . from ( httpsUrl , STORAGE ) ;
5199
5199
5200
5200
assert ( result ) ;
5201
- assert ( result . bucket . name , 'mybucket' ) ;
5202
- assert ( result . name , 'myfile' ) ;
5201
+ assert . strictEqual ( result . bucket . name , 'mybucket' ) ;
5202
+ assert . strictEqual ( result . name , 'myfile' ) ;
5203
5203
} ) ;
5204
5204
5205
5205
it ( 'should create a File object from a https:// formatted URL including a folder' , ( ) => {
@@ -5208,8 +5208,8 @@ describe('File', () => {
5208
5208
const result = File . from ( httpsUrl , STORAGE ) ;
5209
5209
5210
5210
assert ( result ) ;
5211
- assert ( result . bucket . name , 'mybucket' ) ;
5212
- assert ( result . name , 'myfolder/myfile' ) ;
5211
+ assert . strictEqual ( result . bucket . name , 'mybucket' ) ;
5212
+ assert . strictEqual ( result . name , 'myfolder/myfile' ) ;
5213
5213
} ) ;
5214
5214
5215
5215
it ( 'should throw an error when invoked with an incorrectly formatted URL' , ( ) => {
0 commit comments