diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-07 10:39:09 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-07 10:39:09 +0200 |
commit | 3cc665f48fd233d09f778d7e887488dde6f03ef6 (patch) | |
tree | ba8503723206ef17f4b8e4a2e40125472b28dbaf /server/tests/api/users | |
parent | ee8e602ef9761b4869e14d4d3ed24a2e18f22c65 (diff) | |
download | PeerTube-3cc665f48fd233d09f778d7e887488dde6f03ef6.tar.gz PeerTube-3cc665f48fd233d09f778d7e887488dde6f03ef6.tar.zst PeerTube-3cc665f48fd233d09f778d7e887488dde6f03ef6.zip |
Add last login date to users
Diffstat (limited to 'server/tests/api/users')
-rw-r--r-- | server/tests/api/users/users.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts index f3b732632..c0cbce360 100644 --- a/server/tests/api/users/users.ts +++ b/server/tests/api/users/users.ts | |||
@@ -418,6 +418,9 @@ describe('Test users', function () { | |||
418 | expect(rootUser.email).to.equal('admin' + server.internalServerNumber + '@example.com') | 418 | expect(rootUser.email).to.equal('admin' + server.internalServerNumber + '@example.com') |
419 | expect(user.nsfwPolicy).to.equal('display') | 419 | expect(user.nsfwPolicy).to.equal('display') |
420 | 420 | ||
421 | expect(rootUser.lastLoginDate).to.exist | ||
422 | expect(user.lastLoginDate).to.exist | ||
423 | |||
421 | userId = user.id | 424 | userId = user.id |
422 | }) | 425 | }) |
423 | 426 | ||