aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/cli
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-12-07 14:32:36 +0100
committerGitHub <noreply@github.com>2020-12-07 14:32:36 +0100
commit2d53be0267acc49cda46707b885096193a1f4e9c (patch)
tree887061a34bc67f40acbb96a6278f9544bf83caeb /server/tests/cli
parentadc1f09c0dbd997f34028c1c82d1c118dc8ead80 (diff)
downloadPeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.tar.gz
PeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.tar.zst
PeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.zip
replace numbers with typed http status codes (#3409)
Diffstat (limited to 'server/tests/cli')
-rw-r--r--server/tests/cli/prune-storage.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/tests/cli/prune-storage.ts b/server/tests/cli/prune-storage.ts
index 052a5f91e..591ed217f 100644
--- a/server/tests/cli/prune-storage.ts
+++ b/server/tests/cli/prune-storage.ts
@@ -24,6 +24,7 @@ import { Account, VideoPlaylistPrivacy } from '../../../shared/models'
24import { createFile, readdir } from 'fs-extra' 24import { createFile, readdir } from 'fs-extra'
25import { v4 as uuidv4 } from 'uuid' 25import { v4 as uuidv4 } from 'uuid'
26import { join } from 'path' 26import { join } from 'path'
27import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
27 28
28const expect = chai.expect 29const expect = chai.expect
29 30
@@ -98,7 +99,7 @@ describe('Test prune storage scripts', function () {
98 await makeGetRequest({ 99 await makeGetRequest({
99 url: servers[0].url, 100 url: servers[0].url,
100 path: account.avatar.path, 101 path: account.avatar.path,
101 statusCodeExpected: 200 102 statusCodeExpected: HttpStatusCode.OK_200
102 }) 103 })
103 } 104 }
104 105
@@ -108,7 +109,7 @@ describe('Test prune storage scripts', function () {
108 await makeGetRequest({ 109 await makeGetRequest({
109 url: servers[1].url, 110 url: servers[1].url,
110 path: account.avatar.path, 111 path: account.avatar.path,
111 statusCodeExpected: 200 112 statusCodeExpected: HttpStatusCode.OK_200
112 }) 113 })
113 } 114 }
114 115