Skip to content

Instantly share code, notes, and snippets.

@KieronWiltshire
Created May 24, 2016 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KieronWiltshire/fea16bd097098b6f3a11019d67c237c6 to your computer and use it in GitHub Desktop.
Save KieronWiltshire/fea16bd097098b6f3a11019d67c237c6 to your computer and use it in GitHub Desktop.
> mocha
api
user
registration
√ should return 0 users (56ms)
√ should register a new user (145ms)
[2016-05-24 12:15:10] INFO: Sending mail using SMTP/2.5.0[client:2.5.0]
√ should return 1 user
√ should return our test user
[2016-05-24 12:15:10] INFO: [Ca6C5YbTDpQ] Connection established to 40.96.37.50:587
[2016-05-24 12:15:10] INFO: [FYDSb4AkpAw] Connection established to 40.96.37.50:587
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] S: 220 DB5PR08CA0053.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 24 May 2016 12:15:14 +0000
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] C: EHLO [127.0.0.1]
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] S: 220 DB5PR08CA0081.outlook.office365.com Microsoft ESMTP MAIL Service ready at Tue, 24 May 2016 12:15:14 +0000
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] C: EHLO [127.0.0.1]
√ should not register a user with the same email (84ms)
√ should not register a user with a name containing non-alphanumeric characters
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] S: 250-DB5PR08CA0053.outlook.office365.com Hello [90.208.106.218]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250 CHUNKING
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] C: STARTTLS
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] S: 250-DB5PR08CA0081.outlook.office365.com Hello [90.208.106.218]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-8BITMIME
250-BINARYMIME
250 CHUNKING
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] C: STARTTLS
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] S: 220 2.0.0 SMTP server ready
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] S: 220 2.0.0 SMTP server ready
√ should not register a user with the same name (89ms)
√ should not register a user underage
√ should not register a user with a password length less than 6
√ shouldn't verify the user
[2016-05-24 12:15:10] INFO: [Ca6C5YbTDpQ] Connection upgraded with STARTTLS
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] C: EHLO [127.0.0.1]
[2016-05-24 12:15:10] INFO: [FYDSb4AkpAw] Connection upgraded with STARTTLS
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] C: EHLO [127.0.0.1]
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] S: 250-DB5PR08CA0053.outlook.office365.com Hello [90.208.106.218]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] SMTP handshake finished
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] C: AUTH LOGIN
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] S: 250-DB5PR08CA0081.outlook.office365.com Hello [90.208.106.218]
250-SIZE 157286400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] SMTP handshake finished
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] C: AUTH LOGIN
√ should verify the user (87ms)
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] S: 334 VXNlcm5hbWU6
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] C: bm8ucmVwbHlAZHJhY2FkZS5jb20=
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] S: 334 VXNlcm5hbWU6
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] C: bm8ucmVwbHlAZHJhY2FkZS5jb20=
√ shouldn't be able to re-verify the user
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] S: 334 UGFzc3dvcmQ6
[2016-05-24 12:15:10] DEBUG: [Ca6C5YbTDpQ] C: RHV3bzE3NTY=
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] S: 334 UGFzc3dvcmQ6
[2016-05-24 12:15:10] DEBUG: [FYDSb4AkpAw] C: RHV3bzE3NTY=
√ shouldn't update the users password
√ should ask the method to include the PasswordReset model (167ms)
√ should generate a reset token for the password (172ms)
√ should only have 1 password reset in storage
√ should't reset the user's password
√ should reset the user's password (104ms)
√ should update the users password (121ms)
√ shouldn't update the users email without password
√ should update the users email with password (59ms)
√ should re-verify the user (43ms)
authentication
√ shouldn't provide a user with an auth token (41ms)
√ should provide a user with an auth token (44ms)
√ shouldn't refresh the user's auth token
√ should refresh the user's auth token
√ should verify the auth token
minecraft
√ shouldn't be able to link to non auth user
√ shouldn't be able to unlink to non auth user
√ shouldn't be able to retrieve the profile from user
√ should be able to link to auth user (74ms)
√ should be able to retrieve the profile from user
√ shouldn't be able to unlink from different user
√ should be able to unlink from auth user (110ms)
√ shouldn't be able to retrieve the profile from user
35 passing (4s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment