Skip to content

Commit f04101e

Browse files
committed
Fix linting errors
1 parent 16ec106 commit f04101e

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

test/user.test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@ describe('User', function() {
19801980
originalUserToken2]);
19811981
done();
19821982
});
1983-
};
1983+
}
19841984

19851985
function assertNoAccessTokens(done) {
19861986
AccessToken.find({ where: { userId: user.id }}, function(err, tokens) {
@@ -2069,7 +2069,7 @@ describe('User', function() {
20692069
User.create(
20702070
{ email: 'special@example.com', password: 'pass1', name: 'Special' },
20712071
function(err, specialInstance) {
2072-
if (err) return next (err);
2072+
if (err) return next(err);
20732073
userSpecial = specialInstance;
20742074
next();
20752075
});
@@ -2078,41 +2078,41 @@ describe('User', function() {
20782078
User.create(
20792079
{ email: 'normal@example.com', password: 'pass2' },
20802080
function(err, normalInstance) {
2081-
if (err) return next (err);
2081+
if (err) return next(err);
20822082
userNormal = normalInstance;
20832083
next();
20842084
});
20852085
},
20862086
function loginSpecialUser(next) {
20872087
User.login({ email: 'special@example.com', password: 'pass1' }, function(err, ats) {
2088-
if (err) return next (err);
2088+
if (err) return next(err);
20892089
next();
20902090
});
20912091
},
20922092
function loginNormalUser(next) {
20932093
User.login({ email: 'normal@example.com', password: 'pass2' }, function(err, atn) {
2094-
if (err) return next (err);
2094+
if (err) return next(err);
20952095
next();
20962096
});
20972097
},
20982098
function updateSpecialUser(next) {
20992099
User.updateAll(
21002100
{ name: 'Special' },
21012101
{ email: 'superspecial@example.com' }, function(err, info) {
2102-
if (err) return next (err);
2102+
if (err) return next(err);
21032103
next();
21042104
});
21052105
},
21062106
function verifyTokensOfSpecialUser(next) {
21072107
AccessToken.find({ where: { userId: userSpecial.id }}, function(err, tokens1) {
2108-
if (err) return done (err);
2108+
if (err) return done(err);
21092109
expect(tokens1.length).to.equal(0);
21102110
next();
21112111
});
21122112
},
21132113
function verifyTokensOfNormalUser(next) {
21142114
AccessToken.find({ userId: userNormal.userId }, function(err, tokens2) {
2115-
if (err) return done (err);
2115+
if (err) return done(err);
21162116
expect(tokens2.length).to.equal(1);
21172117
next();
21182118
});
@@ -2128,7 +2128,7 @@ describe('User', function() {
21282128
var email = validCredentialsEmailVerified.email;
21292129

21302130
User.resetPassword({ email: email }, function(err, info) {
2131-
if (err) return done (err);
2131+
if (err) return done(err);
21322132
done();
21332133
});
21342134
});
@@ -2142,7 +2142,7 @@ describe('User', function() {
21422142
assert(err);
21432143
assert.equal(err.code, 'RESET_FAILED_EMAIL_NOT_VERIFIED');
21442144
assert.equal(err.statusCode, 401);
2145-
done ();
2145+
done();
21462146
});
21472147
});
21482148

@@ -2152,7 +2152,7 @@ describe('User', function() {
21522152
var email = validCredentialsEmail;
21532153

21542154
User.resetPassword({ email: email }, function(err) {
2155-
if (err) return done (err);
2155+
if (err) return done(err);
21562156
done();
21572157
});
21582158
});

0 commit comments

Comments
 (0)