test: Upgrade spec dependencies (#13310)
* 📦 Update mocha, mocha-junit-reporter * 📦 Update graceful-fs, multiparty, q, walkdir * 📦 Update basic-auth * 📦 Update ws * 📦 Update dbus-native * 📦 Upgrade yargs * 🔒 Run `npm audit fix` * 🔧 Fix websocket API change
This commit is contained in:
parent
1a8c986fb1
commit
562eddf0e9
3 changed files with 381 additions and 478 deletions
|
@ -955,8 +955,8 @@ describe('chromium feature', () => {
|
|||
const port = server.address().port
|
||||
wss = new WebSocketServer({ server: server })
|
||||
wss.on('error', done)
|
||||
wss.on('connection', (ws) => {
|
||||
if (ws.upgradeReq.headers['user-agent']) {
|
||||
wss.on('connection', (ws, upgradeReq) => {
|
||||
if (upgradeReq.headers['user-agent']) {
|
||||
done()
|
||||
} else {
|
||||
done('user agent is empty')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue