Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('Should respond with an empty array if title provided but movie doesn\'t exist', (done) => {
- request(app).post('/movies').send({"title": "ihopethisdoesntexist:)" })
- .then(()=>{
- request(app).get('/movies?title=Home+Alone').then((res) => {
- expect(res.body.message.length).toBe(0)
- done()
- })
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement