Skip to content

Commit

Permalink
Fix code to match linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
talyssonoc committed Oct 7, 2017
1 parent 6116c5f commit 15e6270
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/user/GetUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ class GetUser extends Operation {
}
}

GetUser.setOutputs(['SUCCESS', 'ERROR', 'NOT_FOUND'])
GetUser.setOutputs(['SUCCESS', 'ERROR', 'NOT_FOUND']);

module.exports = GetUser;
2 changes: 1 addition & 1 deletion test/features/api/users/deleteUser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('API :: DELETE /api/users/:id', () => {
name: 'User'
});

const { body } = await request()
await request()
.delete(`/api/users/${user.id}`)
.expect(202);
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/app/user/DeleteUser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('App :: User :: DeleteUser', () => {
context('when user exists', () => {
before(() => {
const MockUsersRepository = {
remove: (id) => Promise.resolve()
remove: () => Promise.resolve()
};

deleteUser = new DeleteUser({
Expand Down
2 changes: 1 addition & 1 deletion test/unit/app/user/GetUser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('App :: User :: GetUser', () => {
context('when user does not exist', () => {
beforeEach(() => {
const MockUsersRepository = {
getById: (userId) => Promise.reject({
getById: () => Promise.reject({
details: 'User with id 123 can\'t be found.'
})
};
Expand Down
4 changes: 2 additions & 2 deletions test/unit/infra/user/SequelizeUsersRepository.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe('Infra :: User :: SequelizeUsersRepository', () => {
return await repository.update(user.id, { name: 'New User' });
}).to.alter(async () => {
const dbUser = await UserModel.findById(user.id);
return dbUser.name
return dbUser.name;
}, { from: 'User', to: 'New User' });
});
});
Expand All @@ -153,7 +153,7 @@ describe('Infra :: User :: SequelizeUsersRepository', () => {
}
}).to.not.alter(async () => {
const dbUser = await UserModel.findById(user.id);
return dbUser.name
return dbUser.name;
});
});
});
Expand Down

0 comments on commit 15e6270

Please sign in to comment.