aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-18 09:29:59 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-18 09:29:59 +0100
commitad4a8a1cca1049f600ebcdce9260c1021cd821a5 (patch)
treeca8ffba899b024d56d1bd7846f61aecae0821c82 /server/tests/api/users.js
parent5d67f289df4a68e35ad7e0af3c601c7db0dc7586 (diff)
downloadPeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.tar.gz
PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.tar.zst
PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.zip
Add email to users
Diffstat (limited to 'server/tests/api/users.js')
-rw-r--r--server/tests/api/users.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/tests/api/users.js b/server/tests/api/users.js
index e6d937eb0..df075f48a 100644
--- a/server/tests/api/users.js
+++ b/server/tests/api/users.js
@@ -186,6 +186,7 @@ describe('Test users', function () {
186 const user = res.body 186 const user = res.body
187 187
188 expect(user.username).to.equal('user_1') 188 expect(user.username).to.equal('user_1')
189 expect(user.email).to.equal('user_1@example.com')
189 expect(user.id).to.exist 190 expect(user.id).to.exist
190 191
191 done() 192 done()
@@ -216,9 +217,11 @@ describe('Test users', function () {
216 217
217 const user = users[0] 218 const user = users[0]
218 expect(user.username).to.equal('user_1') 219 expect(user.username).to.equal('user_1')
220 expect(user.email).to.equal('user_1@example.com')
219 221
220 const rootUser = users[1] 222 const rootUser = users[1]
221 expect(rootUser.username).to.equal('root') 223 expect(rootUser.username).to.equal('root')
224 expect(rootUser.email).to.equal('admin1@example.com')
222 userId = user.id 225 userId = user.id
223 226
224 done() 227 done()
@@ -238,6 +241,7 @@ describe('Test users', function () {
238 241
239 const user = users[0] 242 const user = users[0]
240 expect(user.username).to.equal('root') 243 expect(user.username).to.equal('root')
244 expect(user.email).to.equal('admin1@example.com')
241 245
242 done() 246 done()
243 }) 247 })
@@ -256,6 +260,7 @@ describe('Test users', function () {
256 260
257 const user = users[0] 261 const user = users[0]
258 expect(user.username).to.equal('user_1') 262 expect(user.username).to.equal('user_1')
263 expect(user.email).to.equal('user_1@example.com')
259 264
260 done() 265 done()
261 }) 266 })
@@ -274,6 +279,7 @@ describe('Test users', function () {
274 279
275 const user = users[0] 280 const user = users[0]
276 expect(user.username).to.equal('user_1') 281 expect(user.username).to.equal('user_1')
282 expect(user.email).to.equal('user_1@example.com')
277 283
278 done() 284 done()
279 }) 285 })
@@ -291,7 +297,9 @@ describe('Test users', function () {
291 expect(users.length).to.equal(2) 297 expect(users.length).to.equal(2)
292 298
293 expect(users[0].username).to.equal('root') 299 expect(users[0].username).to.equal('root')
300 expect(users[0].email).to.equal('admin1@example.com')
294 expect(users[1].username).to.equal('user_1') 301 expect(users[1].username).to.equal('user_1')
302 expect(users[1].email).to.equal('user_1@example.com')
295 303
296 done() 304 done()
297 }) 305 })