aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/shared
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/shared')
-rw-r--r--server/tests/shared/checks.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/shared/checks.ts b/server/tests/shared/checks.ts
index 8c8260088..dcc16d7ea 100644
--- a/server/tests/shared/checks.ts
+++ b/server/tests/shared/checks.ts
@@ -35,8 +35,8 @@ async function testImage (url: string, imageName: string, imageHTTPPath: string,
35 const body = res.body 35 const body = res.body
36 36
37 const data = await readFile(join(root(), 'server', 'tests', 'fixtures', imageName + extension)) 37 const data = await readFile(join(root(), 'server', 'tests', 'fixtures', imageName + extension))
38 const minLength = data.length - ((30 * data.length) / 100) 38 const minLength = data.length - ((40 * data.length) / 100)
39 const maxLength = data.length + ((30 * data.length) / 100) 39 const maxLength = data.length + ((40 * data.length) / 100)
40 40
41 expect(body.length).to.be.above(minLength, 'the generated image is way smaller than the recorded fixture') 41 expect(body.length).to.be.above(minLength, 'the generated image is way smaller than the recorded fixture')
42 expect(body.length).to.be.below(maxLength, 'the generated image is way larger than the recorded fixture') 42 expect(body.length).to.be.below(maxLength, 'the generated image is way larger than the recorded fixture')