diff options
Diffstat (limited to 'server/tests/shared')
-rw-r--r-- | server/tests/shared/checks.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/shared/checks.ts b/server/tests/shared/checks.ts index dcc16d7ea..33b917f31 100644 --- a/server/tests/shared/checks.ts +++ b/server/tests/shared/checks.ts | |||
@@ -19,6 +19,10 @@ function expectStartWith (str: string, start: string) { | |||
19 | expect(str.startsWith(start), `${str} does not start with ${start}`).to.be.true | 19 | expect(str.startsWith(start), `${str} does not start with ${start}`).to.be.true |
20 | } | 20 | } |
21 | 21 | ||
22 | function expectNotStartWith (str: string, start: string) { | ||
23 | expect(str.startsWith(start), `${str} does not start with ${start}`).to.be.false | ||
24 | } | ||
25 | |||
22 | async function expectLogDoesNotContain (server: PeerTubeServer, str: string) { | 26 | async function expectLogDoesNotContain (server: PeerTubeServer, str: string) { |
23 | const content = await server.servers.getLogContent() | 27 | const content = await server.servers.getLogContent() |
24 | 28 | ||
@@ -92,6 +96,7 @@ export { | |||
92 | expectLogDoesNotContain, | 96 | expectLogDoesNotContain, |
93 | testFileExistsOrNot, | 97 | testFileExistsOrNot, |
94 | expectStartWith, | 98 | expectStartWith, |
99 | expectNotStartWith, | ||
95 | checkBadStartPagination, | 100 | checkBadStartPagination, |
96 | checkBadCountPagination, | 101 | checkBadCountPagination, |
97 | checkBadSortPagination | 102 | checkBadSortPagination |