slug is lowercase

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

@ -174,7 +174,7 @@ describe('User', function() {
describe('.delete()', function() {
var uid;
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);
uid = newUid;
done();
@ -184,7 +184,7 @@ describe('User', function() {
it('should delete a user account', function(done) {
User.delete(uid, function(err) {
assert.ifError(err);
User.exists('userToDelete', function(err, exists) {
User.exists('usertodelete', function(err, exists) {
assert.ifError(err);
assert.equal(exists, false);
done();

Loading…
Cancel
Save