diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-16 10:42:24 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea (patch) | |
tree | baf29753ac5d4598643e3bee719f8df0cc36c59d /server/tests/cli | |
parent | 08642a765ea514a00f159db898edf14c376fbe6c (diff) | |
download | PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.tar.gz PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.tar.zst PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.zip |
Refactor requests
Diffstat (limited to 'server/tests/cli')
-rw-r--r-- | server/tests/cli/prune-storage.ts | 6 | ||||
-rw-r--r-- | server/tests/cli/regenerate-thumbnails.ts | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/cli/prune-storage.ts b/server/tests/cli/prune-storage.ts index 5bf86462b..2bd4a466b 100644 --- a/server/tests/cli/prune-storage.ts +++ b/server/tests/cli/prune-storage.ts | |||
@@ -5,7 +5,7 @@ import * as chai from 'chai' | |||
5 | import { createFile, readdir } from 'fs-extra' | 5 | import { createFile, readdir } from 'fs-extra' |
6 | import { join } from 'path' | 6 | import { join } from 'path' |
7 | import { buildUUID } from '@server/helpers/uuid' | 7 | import { buildUUID } from '@server/helpers/uuid' |
8 | import { HttpStatusCode } from '@shared/core-utils' | 8 | import { HttpStatusCode } from '@shared/models' |
9 | import { | 9 | import { |
10 | cleanupTests, | 10 | cleanupTests, |
11 | CLICommand, | 11 | CLICommand, |
@@ -91,7 +91,7 @@ describe('Test prune storage scripts', function () { | |||
91 | await makeGetRequest({ | 91 | await makeGetRequest({ |
92 | url: servers[0].url, | 92 | url: servers[0].url, |
93 | path: account.avatar.path, | 93 | path: account.avatar.path, |
94 | statusCodeExpected: HttpStatusCode.OK_200 | 94 | expectedStatus: HttpStatusCode.OK_200 |
95 | }) | 95 | }) |
96 | } | 96 | } |
97 | 97 | ||
@@ -100,7 +100,7 @@ describe('Test prune storage scripts', function () { | |||
100 | await makeGetRequest({ | 100 | await makeGetRequest({ |
101 | url: servers[1].url, | 101 | url: servers[1].url, |
102 | path: account.avatar.path, | 102 | path: account.avatar.path, |
103 | statusCodeExpected: HttpStatusCode.OK_200 | 103 | expectedStatus: HttpStatusCode.OK_200 |
104 | }) | 104 | }) |
105 | } | 105 | } |
106 | 106 | ||
diff --git a/server/tests/cli/regenerate-thumbnails.ts b/server/tests/cli/regenerate-thumbnails.ts index d532a5c2b..595d842ef 100644 --- a/server/tests/cli/regenerate-thumbnails.ts +++ b/server/tests/cli/regenerate-thumbnails.ts | |||
@@ -2,7 +2,7 @@ import 'mocha' | |||
2 | import { expect } from 'chai' | 2 | import { expect } from 'chai' |
3 | import { writeFile } from 'fs-extra' | 3 | import { writeFile } from 'fs-extra' |
4 | import { basename, join } from 'path' | 4 | import { basename, join } from 'path' |
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/models' |
6 | import { Video } from '@shared/models' | 6 | import { Video } from '@shared/models' |
7 | import { | 7 | import { |
8 | cleanupTests, | 8 | cleanupTests, |