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:
Felix Rieseberg 2018-06-20 00:18:24 -07:00 committed by Samuel Attard
parent 1a8c986fb1
commit 562eddf0e9
3 changed files with 381 additions and 478 deletions

View file

@ -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')