import { isAbsolute, join } from 'path'
import * as request from 'supertest'
import * as WebTorrent from 'webtorrent'
-import { readFileBufferPromise } from '../../../helpers/core-utils'
+import { readFile } from 'fs-extra'
const expect = chai.expect
let webtorrent = new WebTorrent()
const body = res.body
- const data = await readFileBufferPromise(join(__dirname, '..', '..', 'fixtures', imageName + extension))
+ const data = await readFile(join(__dirname, '..', '..', 'fixtures', imageName + extension))
const minLength = body.length - ((20 * body.length) / 100)
const maxLength = body.length + ((20 * body.length) / 100)