refactor: fix lint on test/realtime/socket-events.test.js

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2019-08-04 23:21:51 +08:00
parent 8fc2059a09
commit 5f5a26c497
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 3 additions and 3 deletions

View File

@ -274,7 +274,7 @@ describe('realtime#socket event', function () {
onlineUsersFunc() onlineUsersFunc()
assert(clientSocket.emit.called) assert(clientSocket.emit.called)
assert(clientSocket.emit.lastCall.args[0] === 'online users') assert(clientSocket.emit.lastCall.args[0] === 'online users')
let returnUserList = clientSocket.emit.lastCall.args[1].users const returnUserList = clientSocket.emit.lastCall.args[1].users
assert(returnUserList.length === 2) assert(returnUserList.length === 2)
assert(returnUserList[0].id === 10) assert(returnUserList[0].id === 10)
assert(returnUserList[1].id === 20) assert(returnUserList[1].id === 20)
@ -444,8 +444,8 @@ describe('realtime#socket event', function () {
}) })
describe('permission', function () { describe('permission', function () {
let ownerId = 'user1_id' const ownerId = 'user1_id'
let otherSignInUserId = 'user2_id' const otherSignInUserId = 'user2_id'
let otherClient let otherClient
let checkViewPermissionSpy let checkViewPermissionSpy
let permissionFunc let permissionFunc