-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the code according to TL comments
Relates #26
- Loading branch information
1 parent
11d72e6
commit 3961b65
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,13 @@ tape('testing post feedback route', (t) => { | |
.post('/api/v1/post-feedback') | ||
.send({ orderId: 2, email: '[email protected]', feedback: 'Every thing is good' }) | ||
.expect('Content-Type', /json/) | ||
.expect(200) | ||
.expect(201) | ||
.end((err, res) => { | ||
if (err) { | ||
t.error(err); | ||
t.end(); | ||
} else { | ||
t.deepEqual(res.body, { statusCode: 200, message: 'Your feedback has sent!' }, 'should be the same'); | ||
t.deepEqual(res.body, { statusCode: 201, message: 'Your feedback has sent!' }, 'should be the same'); | ||
t.end(); | ||
} | ||
}); | ||
|