Skip to content

Commit

Permalink
edit tests
Browse files Browse the repository at this point in the history
relates #12
  • Loading branch information
rehabas committed Apr 3, 2020
1 parent 8f50c51 commit 7b69dc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getProjectsData = async (req, res, next) => {
if (rows.length > 0) {
res.json({
statusCode: 200,
rows,
data: rows,
});
} else {
res.json({
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe('Get project by type', () => {
.expect('Content-Type', /json/)
.end((err, res) => {
if (err) return done(err);
const { name } = res.body.rows[0];
const { name } = res.body.data[0];
expect(name).toBe('Applicants System');
done();
});
Expand Down

0 comments on commit 7b69dc7

Please sign in to comment.