chore: linting

This commit is contained in:
Bill Church 2024-12-17 12:30:21 +00:00
parent dc85964e96
commit ab208e3e37
No known key found for this signature in database

View file

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