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 1b09096
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ personalInfo: {
house_name: STRING,
house_number: NUMBER,
nearest_landmark: STRING,
phone_1: NUMBER,
phone_2: NUMBER,
phone_1: STRING,
phone_2: STRING,
education_level: STRING,
occupation: STRING,
expected_income_per_month: STRING,
Expand All @@ -166,7 +166,7 @@ personalInfo: {
grt_relations: STRING,
grt_residential_address: STRING,
grt_occupation: STRING,
grt_phone: SRING,
grt_phone: STRING,
grt_district: STRING,
grt_region: STRING
},
Expand Down
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 1b09096

Please sign in to comment.