Upgrade tap to latest (#2400)
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -65,3 +65,5 @@ test/bundlers/parcel-test/.parcel-cache
|
|||||||
lib
|
lib
|
||||||
junit-output
|
junit-output
|
||||||
bun.lockb
|
bun.lockb
|
||||||
|
test-results
|
||||||
|
processinfo
|
||||||
|
|||||||
11
package.json
11
package.json
@ -78,7 +78,7 @@
|
|||||||
"semver": "^7.3.7",
|
"semver": "^7.3.7",
|
||||||
"split2": "^4.1.0",
|
"split2": "^4.1.0",
|
||||||
"stoppable": "^1.1.0",
|
"stoppable": "^1.1.0",
|
||||||
"tap": "^16.1.0",
|
"tap": "^21.0.1",
|
||||||
"ts-node": "^10.7.0",
|
"ts-node": "^10.7.0",
|
||||||
"ts-standard": "^11.0.0",
|
"ts-standard": "^11.0.0",
|
||||||
"typescript": "^4.6.4",
|
"typescript": "^4.6.4",
|
||||||
@ -92,11 +92,8 @@
|
|||||||
"tslib": "^2.4.0"
|
"tslib": "^2.4.0"
|
||||||
},
|
},
|
||||||
"tap": {
|
"tap": {
|
||||||
"ts": true,
|
"files": [
|
||||||
"jsx": false,
|
"test/unit/{*,**/*}.test.ts"
|
||||||
"flow": false,
|
]
|
||||||
"coverage": false,
|
|
||||||
"check-coverage": false,
|
|
||||||
"files": "test/unit/{*,**/*}.test.ts"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -293,14 +293,12 @@ test('Elastic Cloud config', t => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
t.ok(client.connectionPool instanceof CloudConnectionPool)
|
t.ok(client.connectionPool instanceof CloudConnectionPool)
|
||||||
t.match(client.connectionPool.connections.find(c => c.id === 'https://abcd.localhost/'), {
|
const connection = client.connectionPool.connections.find(c => c.id === 'https://abcd.localhost/')
|
||||||
url: new URL('https://elastic:changeme@abcd.localhost'),
|
|
||||||
id: 'https://abcd.localhost/',
|
t.equal(connection?.headers?.authorization, `Basic ${Buffer.from('elastic:changeme').toString('base64')}`)
|
||||||
headers: {
|
t.same(connection?.tls, { secureProtocol: 'TLSv1_2_method' })
|
||||||
authorization: 'Basic ' + Buffer.from('elastic:changeme').toString('base64')
|
t.equal(connection?.url.hostname, 'abcd.localhost')
|
||||||
},
|
t.equal(connection?.url.protocol, 'https:')
|
||||||
tls: { secureProtocol: 'TLSv1_2_method' }
|
|
||||||
})
|
|
||||||
|
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user