Closed Doddzy closed 8 years ago
In the user signup test, since email has to be unique, there is a math.random() changing the email, this will sometimes fail if it collides with existing user, find a solution to this.
require('crypto').randomBytes(48, function(ex, buf) { var token = buf.toString('hex'); });
or
var token = crypto.randomBytes(64).toString('hex');
Would either of these solve your problem?
In the user signup test, since email has to be unique, there is a math.random() changing the email, this will sometimes fail if it collides with existing user, find a solution to this.