chore: update to latest linting rules
This commit is contained in:
parent
acc1cd0ee5
commit
fa644d6a31
|
@ -1901,7 +1901,7 @@ module.exports = function(registry) {
|
||||||
}
|
}
|
||||||
|
|
||||||
next();
|
next();
|
||||||
};
|
}
|
||||||
|
|
||||||
function deleteHandler(ctx, next) {
|
function deleteHandler(ctx, next) {
|
||||||
var change = createChangeObject(ctx, 'delete');
|
var change = createChangeObject(ctx, 'delete');
|
||||||
|
@ -1910,7 +1910,7 @@ module.exports = function(registry) {
|
||||||
}
|
}
|
||||||
|
|
||||||
next();
|
next();
|
||||||
};
|
}
|
||||||
|
|
||||||
function createChangeObject(ctx, type) {
|
function createChangeObject(ctx, type) {
|
||||||
var where = ctx.where;
|
var where = ctx.where;
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
"coveralls": "^3.0.2",
|
"coveralls": "^3.0.2",
|
||||||
"dirty-chai": "^1.2.2",
|
"dirty-chai": "^1.2.2",
|
||||||
"eslint": "^5.3.0",
|
"eslint": "^5.3.0",
|
||||||
"eslint-config-loopback": "^11.0.0",
|
"eslint-config-loopback": "^12.0.0",
|
||||||
"eslint-plugin-mocha": "^5.1.0",
|
"eslint-plugin-mocha": "^5.1.0",
|
||||||
"express-session": "^1.14.0",
|
"express-session": "^1.14.0",
|
||||||
"grunt": "^1.0.1",
|
"grunt": "^1.0.1",
|
||||||
|
|
|
@ -642,7 +642,7 @@ describe('authorized roles propagation in RemotingContext', function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return Promise.all(acls);
|
return Promise.all(acls);
|
||||||
};
|
}
|
||||||
|
|
||||||
function makeAuthorizedHttpRequestOnMyTestModel() {
|
function makeAuthorizedHttpRequestOnMyTestModel() {
|
||||||
return request.get('/MyTestModels')
|
return request.get('/MyTestModels')
|
||||||
|
|
|
@ -778,9 +778,9 @@ describe('Multiple users with custom principalType', function() {
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
emitter.once(name, resolve);
|
emitter.once(name, resolve);
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
function getIds(array) {
|
function getIds(array) {
|
||||||
return array.map(function(it) { return it.id; });
|
return array.map(function(it) { return it.id; });
|
||||||
};
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -2989,7 +2989,7 @@ describe('User', function() {
|
||||||
expect(actualIds).to.eql(expectedIds);
|
expect(actualIds).to.eql(expectedIds);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
function assertNoAccessTokens(done) {
|
function assertNoAccessTokens(done) {
|
||||||
AccessToken.find({where: {userId: user.pk}}, function(err, tokens) {
|
AccessToken.find({where: {userId: user.pk}}, function(err, tokens) {
|
||||||
|
|
Loading…
Reference in New Issue