slug is lowercase

v1.18.x
barisusakli 10 years ago
parent f9fecf4bc1
commit 4d6a6f64b0

@ -174,7 +174,7 @@ describe('User', function() {
describe('.delete()', function() { describe('.delete()', function() {
var uid; var uid;
before(function(done) { before(function(done) {
User.create({username: 'userToDelete', password: '123456', email: 'delete@me.com'}, function(err, newUid) { User.create({username: 'usertodelete', password: '123456', email: 'delete@me.com'}, function(err, newUid) {
assert.ifError(err); assert.ifError(err);
uid = newUid; uid = newUid;
done(); done();
@ -184,7 +184,7 @@ describe('User', function() {
it('should delete a user account', function(done) { it('should delete a user account', function(done) {
User.delete(uid, function(err) { User.delete(uid, function(err) {
assert.ifError(err); assert.ifError(err);
User.exists('userToDelete', function(err, exists) { User.exists('usertodelete', function(err, exists) {
assert.ifError(err); assert.ifError(err);
assert.equal(exists, false); assert.equal(exists, false);
done(); done();

Loading…
Cancel
Save