diff options
Diffstat (limited to 'server/tests/plugins/filter-hooks.ts')
-rw-r--r-- | server/tests/plugins/filter-hooks.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index b5e29d298..c82025f6a 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts | |||
@@ -17,7 +17,6 @@ import { | |||
17 | ImportsCommand, | 17 | ImportsCommand, |
18 | makeRawRequest, | 18 | makeRawRequest, |
19 | PluginsCommand, | 19 | PluginsCommand, |
20 | registerUser, | ||
21 | ServerInfo, | 20 | ServerInfo, |
22 | setAccessTokensToServers, | 21 | setAccessTokensToServers, |
23 | setDefaultVideoChannel, | 22 | setDefaultVideoChannel, |
@@ -335,11 +334,15 @@ describe('Test plugin filter hooks', function () { | |||
335 | }) | 334 | }) |
336 | 335 | ||
337 | it('Should allow a signup', async function () { | 336 | it('Should allow a signup', async function () { |
338 | await registerUser(servers[0].url, 'john', 'password') | 337 | await servers[0].usersCommand.register({ username: 'john', password: 'password' }) |
339 | }) | 338 | }) |
340 | 339 | ||
341 | it('Should not allow a signup', async function () { | 340 | it('Should not allow a signup', async function () { |
342 | const res = await registerUser(servers[0].url, 'jma', 'password', HttpStatusCode.FORBIDDEN_403) | 341 | const res = await servers[0].usersCommand.register({ |
342 | username: 'jma', | ||
343 | password: 'password', | ||
344 | expectedStatus: HttpStatusCode.FORBIDDEN_403 | ||
345 | }) | ||
343 | 346 | ||
344 | expect(res.body.error).to.equal('No jma') | 347 | expect(res.body.error).to.equal('No jma') |
345 | }) | 348 | }) |