Skip to content

Commit

Permalink
Merge pull request #65 from andela/bg-mend-broken-tests-168382828
Browse files Browse the repository at this point in the history
#168382828 Mend Broken Tests on Develop
  • Loading branch information
okoroemeka committed Sep 10, 2019
2 parents 884324e + fb4fe55 commit 1e7e090
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/db/seeders/20190828065701-users-seeder.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ module.exports = {
birth_date: new Date(),
preferred_language: 'English',
preferred_currency: 'USD',
manager_id: 4,
location: 'Texas',
role: 'requester',
manager_id: 1,
Expand Down
12 changes: 6 additions & 6 deletions src/test/comment/postComments.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('Post Comments /comments', () => {
.post('/api/v1/comments')
.set('Authorization', myToken)
.send({
request_id: 2,
request_id: 3,
comment: 'Is there a way forward?'
})
.end((error, res) => {
Expand All @@ -170,7 +170,7 @@ describe('Post Comments /comments', () => {
.post('/api/v1/comments')
.set('Authorization', myToken)
.send({
request_id: 2,
request_id: 3,
comment: 'Is there a way forward?'
})
.end((error, res) => {
Expand All @@ -186,7 +186,7 @@ describe('Post Comments /comments', () => {
.post('/api/v1/comments')
.set('Authorization', myToken)
.send({
request_id: 3,
request_id: 2,
comment: 'Is there a way forward?'
})
.end((error, res) => {
Expand All @@ -203,7 +203,7 @@ describe('Post Comments /comments', () => {
chai.request(app)
.post('/api/v1/comments')
.send({
request_id: 3,
request_id: 2,
comment: 'Please what is the status?',
token: myToken
})
Expand All @@ -222,7 +222,7 @@ describe('Post Comments /comments', () => {
.post('/api/v1/comments')
.set('token', myToken)
.send({
request_id: 3,
request_id: 2,
comment: 'Please what is the status?',
})
.end((error, res) => {
Expand All @@ -239,7 +239,7 @@ describe('Post Comments /comments', () => {
chai.request(app)
.post('/api/v1/comments')
.send({
request_id: 3,
request_id: 2,
comment: 'Please what is the status?',
authorization: myToken
})
Expand Down

0 comments on commit 1e7e090

Please sign in to comment.