Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Supertest delete method is del, not delete #4

Closed
alavers opened this issue Jun 24, 2014 · 2 comments
Closed

Supertest delete method is del, not delete #4

alavers opened this issue Jun 24, 2014 · 2 comments

Comments

@alavers
Copy link

alavers commented Jun 24, 2014

Superagent uses 'del' instead of 'delete' to avoid conflicting with the javascript reserved word. Supertest-as-promised doesn't appear to account for this, the following attempt will fail:

request(app)
      .del("/kittens/123")

I've opened #3 which makes the code above work properly.

@benesch
Copy link
Contributor

benesch commented Jun 26, 2014

Comments in #3.

@benesch benesch closed this as completed in 5e9b8e5 Jul 1, 2014
@benesch
Copy link
Contributor

benesch commented Jul 1, 2014

Fixed!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants