Drop node v10 support (#1471)

This commit is contained in:
Tomas Della Vedova
2021-05-20 16:16:45 +02:00
committed by delvedor
parent 9a021f8445
commit 4ec32601e7
33 changed files with 655 additions and 668 deletions

View File

@ -18,7 +18,7 @@ test('http-http proxy support', async t => {
const server = await createServer()
const proxy = await createProxy()
server.on('request', (req, res) => {
t.strictEqual(req.url, '/_cluster/health')
t.equal(req.url, '/_cluster/health')
res.setHeader('content-type', 'application/json')
res.end(JSON.stringify({ hello: 'world' }))
})
@ -29,7 +29,7 @@ test('http-http proxy support', async t => {
})
const response = await client.cluster.health()
t.deepEqual(response.body, { hello: 'world' })
t.same(response.body, { hello: 'world' })
server.close()
proxy.close()
@ -39,7 +39,7 @@ test('http-https proxy support', async t => {
const server = await createSecureServer()
const proxy = await createProxy()
server.on('request', (req, res) => {
t.strictEqual(req.url, '/_cluster/health')
t.equal(req.url, '/_cluster/health')
res.setHeader('content-type', 'application/json')
res.end(JSON.stringify({ hello: 'world' }))
})
@ -50,7 +50,7 @@ test('http-https proxy support', async t => {
})
const response = await client.cluster.health()
t.deepEqual(response.body, { hello: 'world' })
t.same(response.body, { hello: 'world' })
server.close()
proxy.close()
@ -60,7 +60,7 @@ test('https-http proxy support', async t => {
const server = await createServer()
const proxy = await createSecureProxy()
server.on('request', (req, res) => {
t.strictEqual(req.url, '/_cluster/health')
t.equal(req.url, '/_cluster/health')
res.setHeader('content-type', 'application/json')
res.end(JSON.stringify({ hello: 'world' }))
})
@ -71,7 +71,7 @@ test('https-http proxy support', async t => {
})
const response = await client.cluster.health()
t.deepEqual(response.body, { hello: 'world' })
t.same(response.body, { hello: 'world' })
server.close()
proxy.close()
@ -81,7 +81,7 @@ test('https-https proxy support', async t => {
const server = await createSecureServer()
const proxy = await createSecureProxy()
server.on('request', (req, res) => {
t.strictEqual(req.url, '/_cluster/health')
t.equal(req.url, '/_cluster/health')
res.setHeader('content-type', 'application/json')
res.end(JSON.stringify({ hello: 'world' }))
})
@ -92,7 +92,7 @@ test('https-https proxy support', async t => {
})
const response = await client.cluster.health()
t.deepEqual(response.body, { hello: 'world' })
t.same(response.body, { hello: 'world' })
server.close()
proxy.close()
@ -102,7 +102,7 @@ test('http basic authentication', async t => {
const server = await createServer()
const proxy = await createProxy()
server.on('request', (req, res) => {
t.strictEqual(req.url, '/_cluster/health')
t.equal(req.url, '/_cluster/health')
res.setHeader('content-type', 'application/json')
res.end(JSON.stringify({ hello: 'world' }))
})
@ -117,7 +117,7 @@ test('http basic authentication', async t => {
})
const response = await client.cluster.health()
t.deepEqual(response.body, { hello: 'world' })
t.same(response.body, { hello: 'world' })
server.close()
proxy.close()
@ -127,7 +127,7 @@ test('https basic authentication', async t => {
const server = await createSecureServer()
const proxy = await createProxy()
server.on('request', (req, res) => {
t.strictEqual(req.url, '/_cluster/health')
t.equal(req.url, '/_cluster/health')
res.setHeader('content-type', 'application/json')
res.end(JSON.stringify({ hello: 'world' }))
})
@ -142,7 +142,7 @@ test('https basic authentication', async t => {
})
const response = await client.cluster.health()
t.deepEqual(response.body, { hello: 'world' })
t.same(response.body, { hello: 'world' })
server.close()
proxy.close()