Take a look at the supertest GitHub-page.
You may pass an
http.Server
, or aFunction
torequest()
You are passing a string to the function request. Try passing your express-server object as the function parameter.
EDIT: as seen in comments and @mpm:s answer, the issue was the usage of reserved function delete()
instead of package-specific function del()
.