Skip to content

Commit

Permalink
chore: remove delay dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak committed Jan 27, 2024
1 parent ba70685 commit 7a36924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
"chai-string": "^1.5.0",
"concurrently": "^8.0.1",
"cronometro": "^1.0.5",
"delay": "^5.0.0",
"dns-packet": "^5.4.0",
"docsify-cli": "^4.4.3",
"form-data": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions test/node-fetch/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const crypto = require('crypto')
const chaiPromised = require('chai-as-promised')
const chaiIterator = require('chai-iterator')
const chaiString = require('chai-string')
const delay = require('delay')
const { Blob } = require('buffer')
const { setTimeout } = require('timers/promises')

const {
fetch,
Expand Down Expand Up @@ -761,7 +761,7 @@ describe('node-fetch', () => {

it('should collect handled errors on the body stream to reject if the body is used later', () => {
const url = `${base}invalid-content-encoding`
return fetch(url).then(delay(20)).then(res => {
return fetch(url).then(setTimeout(20)).then(res => {
expect(res.headers.get('content-type')).to.equal('text/plain')
return expect(res.text()).to.eventually.be.rejected
})
Expand Down

0 comments on commit 7a36924

Please sign in to comment.