diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-09 12:08:36 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-09 12:08:36 +0200 |
commit | 2c2e90921646d223060e98d517fc8ac61c90eb9e (patch) | |
tree | cc36bfa79f0809e8c9602492788ef95b3521e003 /server/tests/api/users.js | |
parent | db216afd980846c418a4ebab8190c3ead561dfc1 (diff) | |
download | PeerTube-2c2e90921646d223060e98d517fc8ac61c90eb9e.tar.gz PeerTube-2c2e90921646d223060e98d517fc8ac61c90eb9e.tar.zst PeerTube-2c2e90921646d223060e98d517fc8ac61c90eb9e.zip |
Server: add ability to register new user
Diffstat (limited to 'server/tests/api/users.js')
-rw-r--r-- | server/tests/api/users.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/tests/api/users.js b/server/tests/api/users.js index a5e8a7edf..10c96baeb 100644 --- a/server/tests/api/users.js +++ b/server/tests/api/users.js | |||
@@ -383,6 +383,19 @@ describe('Test users', function () { | |||
383 | }) | 383 | }) |
384 | }) | 384 | }) |
385 | 385 | ||
386 | it('Should register a new user', function (done) { | ||
387 | usersUtils.registerUser(server.url, 'user_15', 'my super password', done) | ||
388 | }) | ||
389 | |||
390 | it('Should be able to login with this registered user', function (done) { | ||
391 | server.user = { | ||
392 | username: 'user_15', | ||
393 | password: 'my super password' | ||
394 | } | ||
395 | |||
396 | loginUtils.loginAndGetAccessToken(server, done) | ||
397 | }) | ||
398 | |||
386 | after(function (done) { | 399 | after(function (done) { |
387 | process.kill(-server.app.pid) | 400 | process.kill(-server.app.pid) |
388 | 401 | ||