chore: linting
This commit is contained in:
parent
dc85964e96
commit
ab208e3e37
1 changed files with 8 additions and 8 deletions
|
@ -16,8 +16,8 @@ describe('Socket Handler', () => {
|
||||||
mockSocket.id = 'test-socket-id'
|
mockSocket.id = 'test-socket-id'
|
||||||
mockSocket.handshake = {
|
mockSocket.handshake = {
|
||||||
session: {
|
session: {
|
||||||
save: mock.fn((cb) => cb())
|
save: mock.fn((cb) => cb()),
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
mockSocket.emit = mock.fn()
|
mockSocket.emit = mock.fn()
|
||||||
mockSocket.disconnect = mock.fn()
|
mockSocket.disconnect = mock.fn()
|
||||||
|
@ -28,14 +28,14 @@ describe('Socket Handler', () => {
|
||||||
term: 'xterm-color',
|
term: 'xterm-color',
|
||||||
readyTimeout: 20000,
|
readyTimeout: 20000,
|
||||||
keepaliveInterval: 120000,
|
keepaliveInterval: 120000,
|
||||||
keepaliveCountMax: 10
|
keepaliveCountMax: 10,
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
allowReauth: true,
|
allowReauth: true,
|
||||||
allowReplay: true,
|
allowReplay: true,
|
||||||
allowReconnect: true
|
allowReconnect: true,
|
||||||
},
|
},
|
||||||
user: {}
|
user: {},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize socket handler
|
// Initialize socket handler
|
||||||
|
@ -55,7 +55,7 @@ describe('Socket Handler', () => {
|
||||||
// Verify socket emits authentication request when no basic auth
|
// Verify socket emits authentication request when no basic auth
|
||||||
assert.equal(mockSocket.emit.mock.calls[0].arguments[0], 'authentication')
|
assert.equal(mockSocket.emit.mock.calls[0].arguments[0], 'authentication')
|
||||||
assert.deepEqual(mockSocket.emit.mock.calls[0].arguments[1], {
|
assert.deepEqual(mockSocket.emit.mock.calls[0].arguments[1], {
|
||||||
action: 'request_auth'
|
action: 'request_auth',
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue