Skip to content

Commit e9f0306

Browse files
f3rnoJacobPlaster
authored andcommitted
(fix) WS2Manager test
1 parent 944400e commit e9f0306

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/lib/ws2_manager.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,16 @@ describe('WS2Manager', () => {
5151
m._sockets = [{
5252
ws: {
5353
isAuthenticated: () => false,
54-
setAuthCredentials: (key, secret) => { cred = `${key}:${secret}` },
55-
auth: ({ calc, dms }) => {
56-
assert.strictEqual(calc, 1)
57-
assert.strictEqual(dms, 4)
54+
setAPICredentials: (key, secret) => { cred = `${key}:${secret}` },
55+
updateAuthArgs: () => {},
56+
auth: () => {
5857
assert.strictEqual(cred, '41:42')
5958
done()
6059
}
6160
}
6261
}]
6362

64-
m.auth({ apiKey: '41', apiSecret: '42', calc: 1, dms: 4 })
63+
m.auth({ apiKey: '41', apiSecret: '42' })
6564
})
6665
})
6766

0 commit comments

Comments
 (0)