mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
space optimizations for node_modules and client stats removal
- replace sharp with lighter jimp alternative - remove stats in builds fixes #2807
This commit is contained in:
@@ -56,11 +56,11 @@ async function testImage (url: string, imageName: string, imagePath: string, ext
|
||||
const body = res.body
|
||||
|
||||
const data = await readFile(join(root(), 'server', 'tests', 'fixtures', imageName + extension))
|
||||
const minLength = body.length - ((20 * body.length) / 100)
|
||||
const maxLength = body.length + ((20 * body.length) / 100)
|
||||
const minLength = body.length - ((30 * body.length) / 100)
|
||||
const maxLength = body.length + ((30 * body.length) / 100)
|
||||
|
||||
expect(data.length).to.be.above(minLength)
|
||||
expect(data.length).to.be.below(maxLength)
|
||||
expect(data.length).to.be.above(minLength, "the generated image is way smaller than the recorded fixture")
|
||||
expect(data.length).to.be.below(maxLength, "the generated image is way larger than the recorded fixture")
|
||||
}
|
||||
|
||||
function buildAbsoluteFixturePath (path: string, customCIPath = false) {
|
||||
|
||||
Reference in New Issue
Block a user