Skip to content

Commit

Permalink
bug(fix): fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Akinmyde committed May 20, 2019
1 parent f6b1f83 commit 42aaa3e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/middlewares.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ describe('SIGNUP VALIDATION TEST', () => {
})
.end((err, res) => {
expect(res.body.errors.body[0]).to.be.equal(
'Password must contain a number, character and alphabet'
'password is not allowed to be empty'
);
done(err);
});
Expand All @@ -220,7 +220,7 @@ describe('SIGNUP VALIDATION TEST', () => {
})
.end((err, res) => {
expect(res.body.errors.body[0]).to.be.equal(
'Password must contain a number, character and alphabet'
'password must be a string'
);
done(err);
});
Expand All @@ -237,9 +237,7 @@ describe('SIGNUP VALIDATION TEST', () => {
confirmPassword: 'h0=ttesttpassword',
})
.end((err, res) => {
expect(res.body.errors.body[0]).to.be.equal(
'Password must contain a number, character and alphabet'
);
expect(res.body.errors.body[0]).to.be.equal('Passwords do not match');
done(err);
});
});
Expand Down Expand Up @@ -274,7 +272,7 @@ describe('SIGNUP VALIDATION TEST', () => {
})
.end((err, res) => {
expect(res.body.errors.body[0]).to.be.equal(
'Password must contain a number, character and alphabet'
'confirmPassword must be a string'
);
done(err);
});
Expand All @@ -291,9 +289,7 @@ describe('SIGNUP VALIDATION TEST', () => {
confirmPassword: 'h0=ttestt',
})
.end((err, res) => {
expect(res.body.errors.body[0]).to.be.equal(
'Password must contain a number, character and alphabet'
);
expect(res.body.errors.body[0]).to.be.equal('Passwords do not match');
done(err);
});
});
Expand Down

0 comments on commit 42aaa3e

Please sign in to comment.