diff options
Diffstat (limited to 'server/tests/utils/miscs/miscs.ts')
-rw-r--r-- | server/tests/utils/miscs/miscs.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/tests/utils/miscs/miscs.ts b/server/tests/utils/miscs/miscs.ts index b0667491b..b2f80e9b1 100644 --- a/server/tests/utils/miscs/miscs.ts +++ b/server/tests/utils/miscs/miscs.ts | |||
@@ -4,7 +4,7 @@ import * as chai from 'chai' | |||
4 | import { isAbsolute, join } from 'path' | 4 | import { isAbsolute, join } from 'path' |
5 | import * as request from 'supertest' | 5 | import * as request from 'supertest' |
6 | import * as WebTorrent from 'webtorrent' | 6 | import * as WebTorrent from 'webtorrent' |
7 | import { readFileBufferPromise } from '../../../helpers/core-utils' | 7 | import { readFile } from 'fs-extra' |
8 | 8 | ||
9 | const expect = chai.expect | 9 | const expect = chai.expect |
10 | let webtorrent = new WebTorrent() | 10 | let webtorrent = new WebTorrent() |
@@ -43,7 +43,7 @@ async function testImage (url: string, imageName: string, imagePath: string, ext | |||
43 | 43 | ||
44 | const body = res.body | 44 | const body = res.body |
45 | 45 | ||
46 | const data = await readFileBufferPromise(join(__dirname, '..', '..', 'fixtures', imageName + extension)) | 46 | const data = await readFile(join(__dirname, '..', '..', 'fixtures', imageName + extension)) |
47 | const minLength = body.length - ((20 * body.length) / 100) | 47 | const minLength = body.length - ((20 * body.length) / 100) |
48 | const maxLength = body.length + ((20 * body.length) / 100) | 48 | const maxLength = body.length + ((20 * body.length) / 100) |
49 | 49 | ||