Skip to content

Commit

Permalink
(fix) WS2Manager test
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rno authored and JacobPlaster committed Feb 20, 2020
1 parent 944400e commit e9f0306
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/lib/ws2_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,16 @@ describe('WS2Manager', () => {
m._sockets = [{
ws: {
isAuthenticated: () => false,
setAuthCredentials: (key, secret) => { cred = `${key}:${secret}` },
auth: ({ calc, dms }) => {
assert.strictEqual(calc, 1)
assert.strictEqual(dms, 4)
setAPICredentials: (key, secret) => { cred = `${key}:${secret}` },
updateAuthArgs: () => {},
auth: () => {
assert.strictEqual(cred, '41:42')
done()
}
}
}]

m.auth({ apiKey: '41', apiSecret: '42', calc: 1, dms: 4 })
m.auth({ apiKey: '41', apiSecret: '42' })
})
})

Expand Down

0 comments on commit e9f0306

Please sign in to comment.