Skip to content

Commit 7a36924

Browse files
committed
chore: remove delay dev dependency
1 parent ba70685 commit 7a36924

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
"chai-string": "^1.5.0",
112112
"concurrently": "^8.0.1",
113113
"cronometro": "^1.0.5",
114-
"delay": "^5.0.0",
115114
"dns-packet": "^5.4.0",
116115
"docsify-cli": "^4.4.3",
117116
"form-data": "^4.0.0",

test/node-fetch/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const crypto = require('crypto')
1010
const chaiPromised = require('chai-as-promised')
1111
const chaiIterator = require('chai-iterator')
1212
const chaiString = require('chai-string')
13-
const delay = require('delay')
1413
const { Blob } = require('buffer')
14+
const { setTimeout } = require('timers/promises')
1515

1616
const {
1717
fetch,
@@ -761,7 +761,7 @@ describe('node-fetch', () => {
761761

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

0 commit comments

Comments
 (0)