mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 18:51:50 +02:00
Merge pull request #22894 from overleaf/jpa-large-chunk
[history-v1] add test case for large text file GitOrigin-RevId: 5d7cc37d74c67e1927785ea9c544d897491e6abd
This commit is contained in:
@@ -157,6 +157,12 @@ describe('backupBlob', function () {
|
||||
content: Buffer.from('x'.repeat(1000)),
|
||||
storedSize: 29, // zlib.gzipSync(content).byteLength
|
||||
},
|
||||
{
|
||||
name: 'large text file',
|
||||
// 'ä' is a 2-byte utf-8 character -> 4MB.
|
||||
content: Buffer.from('ü'.repeat(2 * 1024 * 1024)),
|
||||
storedSize: 4101, // zlib.gzipSync(content).byteLength
|
||||
},
|
||||
{
|
||||
name: 'binary file',
|
||||
content: Buffer.from([0, 1, 2, 3]),
|
||||
|
||||
Reference in New Issue
Block a user