aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/users.js')
-rw-r--r--server/tests/api/users.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/server/tests/api/users.js b/server/tests/api/users.js
index 74477ae2d..dacecf295 100644
--- a/server/tests/api/users.js
+++ b/server/tests/api/users.js
@@ -209,7 +209,7 @@ describe('Test users', function () {
209 209
210 expect(user.username).to.equal('user_1') 210 expect(user.username).to.equal('user_1')
211 expect(user.email).to.equal('user_1@example.com') 211 expect(user.email).to.equal('user_1@example.com')
212 expect(user.displayNSFW).to.be.falsy 212 expect(user.displayNSFW).to.be.false
213 expect(user.id).to.exist 213 expect(user.id).to.exist
214 214
215 done() 215 done()
@@ -238,12 +238,12 @@ describe('Test users', function () {
238 const user = users[0] 238 const user = users[0]
239 expect(user.username).to.equal('user_1') 239 expect(user.username).to.equal('user_1')
240 expect(user.email).to.equal('user_1@example.com') 240 expect(user.email).to.equal('user_1@example.com')
241 expect(user.displayNSFW).to.be.falsy 241 expect(user.displayNSFW).to.be.false
242 242
243 const rootUser = users[1] 243 const rootUser = users[1]
244 expect(rootUser.username).to.equal('root') 244 expect(rootUser.username).to.equal('root')
245 expect(rootUser.email).to.equal('admin1@example.com') 245 expect(rootUser.email).to.equal('admin1@example.com')
246 expect(rootUser.displayNSFW).to.be.falsy 246 expect(rootUser.displayNSFW).to.be.false
247 247
248 userId = user.id 248 userId = user.id
249 249
@@ -265,7 +265,7 @@ describe('Test users', function () {
265 const user = users[0] 265 const user = users[0]
266 expect(user.username).to.equal('root') 266 expect(user.username).to.equal('root')
267 expect(user.email).to.equal('admin1@example.com') 267 expect(user.email).to.equal('admin1@example.com')
268 expect(user.displayNSFW).to.be.falsy 268 expect(user.displayNSFW).to.be.false
269 269
270 done() 270 done()
271 }) 271 })
@@ -285,7 +285,7 @@ describe('Test users', function () {
285 const user = users[0] 285 const user = users[0]
286 expect(user.username).to.equal('user_1') 286 expect(user.username).to.equal('user_1')
287 expect(user.email).to.equal('user_1@example.com') 287 expect(user.email).to.equal('user_1@example.com')
288 expect(user.displayNSFW).to.be.falsy 288 expect(user.displayNSFW).to.be.false
289 289
290 done() 290 done()
291 }) 291 })
@@ -305,7 +305,7 @@ describe('Test users', function () {
305 const user = users[0] 305 const user = users[0]
306 expect(user.username).to.equal('user_1') 306 expect(user.username).to.equal('user_1')
307 expect(user.email).to.equal('user_1@example.com') 307 expect(user.email).to.equal('user_1@example.com')
308 expect(user.displayNSFW).to.be.falsy 308 expect(user.displayNSFW).to.be.false
309 309
310 done() 310 done()
311 }) 311 })
@@ -324,11 +324,11 @@ describe('Test users', function () {
324 324
325 expect(users[0].username).to.equal('root') 325 expect(users[0].username).to.equal('root')
326 expect(users[0].email).to.equal('admin1@example.com') 326 expect(users[0].email).to.equal('admin1@example.com')
327 expect(users[0].displayNSFW).to.be.falsy 327 expect(users[0].displayNSFW).to.be.false
328 328
329 expect(users[1].username).to.equal('user_1') 329 expect(users[1].username).to.equal('user_1')
330 expect(users[1].email).to.equal('user_1@example.com') 330 expect(users[1].email).to.equal('user_1@example.com')
331 expect(users[1].displayNSFW).to.be.falsy 331 expect(users[1].displayNSFW).to.be.false
332 332
333 done() 333 done()
334 }) 334 })
@@ -354,7 +354,7 @@ describe('Test users', function () {
354 354
355 expect(user.username).to.equal('user_1') 355 expect(user.username).to.equal('user_1')
356 expect(user.email).to.equal('user_1@example.com') 356 expect(user.email).to.equal('user_1@example.com')
357 expect(user.displayNSFW).to.be.truthy 357 expect(user.displayNSFW).to.be.ok
358 expect(user.id).to.exist 358 expect(user.id).to.exist
359 359
360 done() 360 done()