diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-02 17:54:23 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-02 17:54:23 +0100 |
commit | b8598d40f650a31fe09a4a5426dcdc2c5c0d566c (patch) | |
tree | ee41176817ef13525aadc4f0b37fc9391364d5c9 /server/tests/shared/checks.ts | |
parent | 190ac9df7c95cdae5294596764afae7ce78d108d (diff) | |
parent | bd09dfaf8dcb0ca4cd5dac9f13e3117486f3bcce (diff) | |
download | PeerTube-b8598d40f650a31fe09a4a5426dcdc2c5c0d566c.tar.gz PeerTube-b8598d40f650a31fe09a4a5426dcdc2c5c0d566c.tar.zst PeerTube-b8598d40f650a31fe09a4a5426dcdc2c5c0d566c.zip |
Merge branch 'release/5.0.0' into develop
Diffstat (limited to 'server/tests/shared/checks.ts')
-rw-r--r-- | server/tests/shared/checks.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/tests/shared/checks.ts b/server/tests/shared/checks.ts index 55ebc6c3e..523d37420 100644 --- a/server/tests/shared/checks.ts +++ b/server/tests/shared/checks.ts | |||
@@ -23,6 +23,12 @@ function expectNotStartWith (str: string, start: string) { | |||
23 | expect(str.startsWith(start), `${str} does not start with ${start}`).to.be.false | 23 | expect(str.startsWith(start), `${str} does not start with ${start}`).to.be.false |
24 | } | 24 | } |
25 | 25 | ||
26 | function expectEndWith (str: string, end: string) { | ||
27 | expect(str.endsWith(end), `${str} does not end with ${end}`).to.be.true | ||
28 | } | ||
29 | |||
30 | // --------------------------------------------------------------------------- | ||
31 | |||
26 | async function expectLogDoesNotContain (server: PeerTubeServer, str: string) { | 32 | async function expectLogDoesNotContain (server: PeerTubeServer, str: string) { |
27 | const content = await server.servers.getLogContent() | 33 | const content = await server.servers.getLogContent() |
28 | 34 | ||
@@ -103,6 +109,7 @@ export { | |||
103 | testFileExistsOrNot, | 109 | testFileExistsOrNot, |
104 | expectStartWith, | 110 | expectStartWith, |
105 | expectNotStartWith, | 111 | expectNotStartWith, |
112 | expectEndWith, | ||
106 | checkBadStartPagination, | 113 | checkBadStartPagination, |
107 | checkBadCountPagination, | 114 | checkBadCountPagination, |
108 | checkBadSortPagination, | 115 | checkBadSortPagination, |