Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexben001 committed Sep 3, 2019
1 parent 05cfd39 commit dbbef04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/farmerInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const farmerInput = {
house_name: 'Ikee',
house_number: 12,
nearest_landmark: 'Bustop',
Phone_1: '8765456789',
Phone_2: '678976546',
phone_1: '8765456789',
phone_2: '678976546',
education_level: 'Tertiary',
occupation: 'Farmer',
expected_income_per_month: '501 to GHC 1,000',
Expand All @@ -30,7 +30,7 @@ const farmerInput = {
familyInfo: {
family_size: 3,
number_of_dependants: 2,
highest_level_of_dependent: 'Tertiary',
highest_level_of_dependants: 'Tertiary',
family_income_per_month: '501 to GHC 1,000'
},
guarantor: {
Expand Down
1 change: 1 addition & 0 deletions tests/farmers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ describe('Farmer route', () => {
.set('Authorization', token)
.send(farmerInput)
.end((err, res) => {
console.log(res.body);
res.should.have.status(201);
id = res.body.farmer._id;
done(err);
Expand Down

0 comments on commit dbbef04

Please sign in to comment.