Skip to content

Commit

Permalink
fix style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shriramshankar committed Jan 6, 2017
1 parent 5195cb9 commit 82e39a6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion api/v1/helpers/verbs/doDeleteAllBToMAssoc.js
Expand Up @@ -27,7 +27,8 @@ const httpStatus = require('../../constants').httpStatus;
* model
*
*/
function doDeleteAllBToMAssoc(req, res, next, props, assocName) { // eslint-disable-line
function doDeleteAllBToMAssoc(req, res, next, // eslint-disable-line max-params
props, assocName) {
const params = req.swagger.params;
let modelInst;
u.findByKey(props, params)
Expand Down
3 changes: 2 additions & 1 deletion api/v1/helpers/verbs/doDeleteOneBToMAssoc.js
Expand Up @@ -28,7 +28,8 @@ const httpStatus = require('../../constants').httpStatus;
* @param {String} nameOrId - The name or id of the association to be deleted
*
*/
function doDeleteOneBtoMAssoc(req, res, next, props, assocName, nameOrId) { // eslint-disable-line
function doDeleteOneBtoMAssoc(req, res, next, // eslint-disable-line max-params
props, assocName, nameOrId) {
const params = req.swagger.params;
const options = {};
options.where = u.whereClauseForNameOrId(nameOrId);
Expand Down
8 changes: 4 additions & 4 deletions api/v1/helpers/verbs/doPostBToMAssoc.js
Expand Up @@ -15,11 +15,11 @@ const u = require('./utils');
const httpStatus = require('../../constants').httpStatus;

/**
* Creates an one to many association between a instance of the model name
* Creates a one to many association between a instance of the model name
* identified by "props.Name" and the instances of the model in assocArray. The
* association is defined through "assocName"
*
* @param {IncomingMessage} req - The request object`
* @param {IncomingMessage} req - The request object
* @param {ServerResponse} res - The response object
* @param {Function} next - The next middleware function in the stack
* @param {Module} props - The module containing the properties of the resource
Expand All @@ -28,9 +28,9 @@ const httpStatus = require('../../constants').httpStatus;
* model
* @param {Array} assocArray - The instances of a model for which the
* association has to be created.
*
*/
function doPostBToMAssoc(req, res, next, props, assocName, assocArray) { // eslint-disable-line
function doPostBToMAssoc(req, res, next, // eslint-disable-line max-params
props, assocName, assocArray) {
const params = req.swagger.params;
let modelInst;
u.findByKey(props, params)
Expand Down
2 changes: 0 additions & 2 deletions tests/api/v1/aspects/postWriters.js
Expand Up @@ -26,7 +26,6 @@ describe('api: aspects: post writers', () => {
let aspect;
let firstUser;
let secondUser;
let thirdUser;
let otherValidToken;
const userNameArray = [];
const aspectToCreate = {
Expand Down Expand Up @@ -65,7 +64,6 @@ describe('api: aspects: post writers', () => {
return tu.createThirdUser();
})
.then((tUsr) => {
thirdUser = tUsr;
return tu.createTokenFromUserName(tUsr.name);
})
.then((tkn) => {
Expand Down

0 comments on commit 82e39a6

Please sign in to comment.