diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-07 09:48:10 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-07 09:57:35 +0200 |
commit | 99d103019c76c517ba607a0fab8022aa6d08ef2e (patch) | |
tree | 7132bede03e32ab27d0f43de024b2080b473454f /server/tests/utils/miscs/miscs.ts | |
parent | 28be89161aab245526d64f6fb7dd29391a97fe0a (diff) | |
download | PeerTube-99d103019c76c517ba607a0fab8022aa6d08ef2e.tar.gz PeerTube-99d103019c76c517ba607a0fab8022aa6d08ef2e.tar.zst PeerTube-99d103019c76c517ba607a0fab8022aa6d08ef2e.zip |
Move fixtures in tests/
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 53cb67baf..5e46004a7 100644 --- a/server/tests/utils/miscs/miscs.ts +++ b/server/tests/utils/miscs/miscs.ts | |||
@@ -46,7 +46,7 @@ async function testImage (url: string, imageName: string, imagePath: string, ext | |||
46 | 46 | ||
47 | const body = res.body | 47 | const body = res.body |
48 | 48 | ||
49 | const data = await readFileBufferPromise(join(__dirname, '..', '..', 'api', 'fixtures', imageName + extension)) | 49 | const data = await readFileBufferPromise(join(__dirname, '..', '..', 'fixtures', imageName + extension)) |
50 | const minLength = body.length - ((20 * body.length) / 100) | 50 | const minLength = body.length - ((20 * body.length) / 100) |
51 | const maxLength = body.length + ((20 * body.length) / 100) | 51 | const maxLength = body.length + ((20 * body.length) / 100) |
52 | 52 | ||
@@ -63,7 +63,7 @@ function buildAbsoluteFixturePath (path: string) { | |||
63 | return path | 63 | return path |
64 | } | 64 | } |
65 | 65 | ||
66 | return join(__dirname, '..', '..', 'api', 'fixtures', path) | 66 | return join(__dirname, '..', '..', 'fixtures', path) |
67 | } | 67 | } |
68 | 68 | ||
69 | // --------------------------------------------------------------------------- | 69 | // --------------------------------------------------------------------------- |