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/plugins/plugin-unloading.ts | |
parent | 08642a765ea514a00f159db898edf14c376fbe6c (diff) | |
download | PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.tar.gz PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.tar.zst PeerTube-c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea.zip |
Refactor requests
Diffstat (limited to 'server/tests/plugins/plugin-unloading.ts')
-rw-r--r-- | server/tests/plugins/plugin-unloading.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/tests/plugins/plugin-unloading.ts b/server/tests/plugins/plugin-unloading.ts index 6c405b7f5..faf9cc599 100644 --- a/server/tests/plugins/plugin-unloading.ts +++ b/server/tests/plugins/plugin-unloading.ts | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { expect } from 'chai' | 4 | import { expect } from 'chai' |
5 | import { HttpStatusCode } from '@shared/core-utils' | 5 | import { HttpStatusCode } from '@shared/models' |
6 | import { | 6 | import { |
7 | cleanupTests, | 7 | cleanupTests, |
8 | createSingleServer, | 8 | createSingleServer, |
@@ -30,7 +30,7 @@ describe('Test plugins module unloading', function () { | |||
30 | const res = await makeGetRequest({ | 30 | const res = await makeGetRequest({ |
31 | url: server.url, | 31 | url: server.url, |
32 | path: requestPath, | 32 | path: requestPath, |
33 | statusCodeExpected: HttpStatusCode.OK_200 | 33 | expectedStatus: HttpStatusCode.OK_200 |
34 | }) | 34 | }) |
35 | 35 | ||
36 | expect(res.body.message).to.match(/^\d+$/) | 36 | expect(res.body.message).to.match(/^\d+$/) |
@@ -41,7 +41,7 @@ describe('Test plugins module unloading', function () { | |||
41 | const res = await makeGetRequest({ | 41 | const res = await makeGetRequest({ |
42 | url: server.url, | 42 | url: server.url, |
43 | path: requestPath, | 43 | path: requestPath, |
44 | statusCodeExpected: HttpStatusCode.OK_200 | 44 | expectedStatus: HttpStatusCode.OK_200 |
45 | }) | 45 | }) |
46 | 46 | ||
47 | expect(res.body.message).to.be.equal(value) | 47 | expect(res.body.message).to.be.equal(value) |
@@ -53,7 +53,7 @@ describe('Test plugins module unloading', function () { | |||
53 | await makeGetRequest({ | 53 | await makeGetRequest({ |
54 | url: server.url, | 54 | url: server.url, |
55 | path: requestPath, | 55 | path: requestPath, |
56 | statusCodeExpected: HttpStatusCode.NOT_FOUND_404 | 56 | expectedStatus: HttpStatusCode.NOT_FOUND_404 |
57 | }) | 57 | }) |
58 | }) | 58 | }) |
59 | 59 | ||
@@ -63,7 +63,7 @@ describe('Test plugins module unloading', function () { | |||
63 | const res = await makeGetRequest({ | 63 | const res = await makeGetRequest({ |
64 | url: server.url, | 64 | url: server.url, |
65 | path: requestPath, | 65 | path: requestPath, |
66 | statusCodeExpected: HttpStatusCode.OK_200 | 66 | expectedStatus: HttpStatusCode.OK_200 |
67 | }) | 67 | }) |
68 | 68 | ||
69 | expect(res.body.message).to.match(/^\d+$/) | 69 | expect(res.body.message).to.match(/^\d+$/) |