mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #21891 from overleaf/jpa-consistent-getObjectSize-type
[object-persistor] gcs: return a number from getObjectSize GitOrigin-RevId: f3e0e3269e789b0077c82014c42a4ca63cd84b39
This commit is contained in:
@@ -45,11 +45,11 @@ describe('GcsPersistorTests', function () {
|
||||
|
||||
files = [
|
||||
{
|
||||
metadata: { size: 11, md5Hash: '/////wAAAAD/////AAAAAA==' },
|
||||
metadata: { size: '11', md5Hash: '/////wAAAAD/////AAAAAA==' },
|
||||
delete: sinon.stub(),
|
||||
},
|
||||
{
|
||||
metadata: { size: 22, md5Hash: '/////wAAAAD/////AAAAAA==' },
|
||||
metadata: { size: '22', md5Hash: '/////wAAAAD/////AAAAAA==' },
|
||||
delete: sinon.stub(),
|
||||
},
|
||||
]
|
||||
@@ -302,7 +302,7 @@ describe('GcsPersistorTests', function () {
|
||||
})
|
||||
|
||||
it('should return the object size', function () {
|
||||
expect(size).to.equal(files[0].metadata.size)
|
||||
expect(size).to.equal(11)
|
||||
})
|
||||
|
||||
it('should pass the bucket and key to GCS', function () {
|
||||
|
||||
Reference in New Issue
Block a user