Skip to content

Commit

Permalink
test: Add test of DELETE request
Browse files Browse the repository at this point in the history
Ref #1534
  • Loading branch information
paulmelnikow authored and gr2m committed May 2, 2019
1 parent 427d7e4 commit ad74e63
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_intercept.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,17 @@ test('post with chaining on call', async t => {
scope.done()
})

test('delete request', async t => {
const scope = nock('https://example.test')
.delete('/')
.reply(204)

const { statusCode } = await got.delete('https://example.test')

t.is(statusCode, 204)
scope.done()
})

test('reply with callback and filtered path and body', async t => {
let noPrematureExecution = false

Expand Down

0 comments on commit ad74e63

Please sign in to comment.