Skip to content

docs: fix default history ordering annotation #1835

docs: fix default history ordering annotation

docs: fix default history ordering annotation #1835

Triggered via pull request December 2, 2024 14:24
Status Failure
Total duration 2m 36s
Artifacts

dev.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test/core/chat.integration.test.ts > Chat > should work using basic auth: test/core/chat.integration.test.ts#L64
AssertionError: expected [] to deeply equal ArrayContaining{…} - Expected + Received - ArrayContaining [ - ObjectContaining { - "clientId": "ably-chat-js-client-fv9fmll", - "text": "my message", - }, - ] + Array [] ❯ test/core/chat.integration.test.ts:64:27
test/core/chat.integration.test.ts > Chat > should work using msgpack: test/core/chat.integration.test.ts#L83
AssertionError: expected [] to deeply equal ArrayContaining{…} - Expected + Received - ArrayContaining [ - ObjectContaining { - "clientId": "ably-chat-js-client-rapnvh", - "text": "my message", - }, - ] + Array [] ❯ test/core/chat.integration.test.ts:83:27
test/core/messages.integration.test.ts > messages integration > should be able to delete and receive deletion messages: test/core/messages.integration.test.ts#L132
AssertionError: expected [ DefaultMessage{ …(12) } ] to deeply equal [ ObjectContaining{…} ] - Expected + Received Array [ - ObjectContaining { + DefaultMessage { "clientId": "ably-chat-js-client-5h3ll6", - "deletedAt": undefined, - "deletedBy": "ably-chat-js-client-5h3ll6", + "createdAt": 2024-12-02T14:26:12.395Z, + "deletedAt": 2024-12-02T14:26:12.417Z, + "headers": Object {}, "latestAction": "message.delete", - "latestActionSerial": undefined, + "latestActionDetails": Object { + "clientId": "ably-chat-js-client-5h3ll6", + "description": "Deleted message", + "metadata": Object { + "key": "value", + }, + }, + "latestActionSerial": "01733149572417-000@e7dWg5JBwBjD8I87978464:000", + "metadata": Object {}, + "roomId": "ably-chat-js-room-kpxl6e", "serial": "01733149572395-000@e7dWg5JBwBjD8I87978464:000", "text": "Hello there!", + "updatedAt": undefined, }, ] ❯ test/core/messages.integration.test.ts:132:23
test/core/messages.integration.test.ts > messages integration > should be able to update and receive update messages: test/core/messages.integration.test.ts#L196
AssertionError: expected [ DefaultMessage{ …(12) } ] to deeply equal [ ObjectContaining{…} ] - Expected + Received Array [ - ObjectContaining { + DefaultMessage { "clientId": "ably-chat-js-client-mc6w6", "createdAt": 2024-12-02T14:26:12.791Z, + "deletedAt": undefined, + "headers": Object {}, "latestAction": "message.update", - "latestActionSerial": undefined, + "latestActionDetails": Object { + "clientId": "ably-chat-js-client-mc6w6", + }, + "latestActionSerial": "01733149572818-000@e7deBXIeABjCwi68766482:000", + "metadata": Object {}, + "roomId": "ably-chat-js-room-zg2mzp", "serial": "01733149572791-000@e7deBXIeABjCwi68766482:000", "text": "bananas", "updatedAt": 2024-12-02T14:26:12.818Z, - "updatedBy": "ably-chat-js-client-mc6w6", }, ] ❯ test/core/messages.integration.test.ts:196:21
test/core/messages.integration.test.ts > messages integration > should be able to retrieve chat history: test/core/messages.integration.test.ts#L223
AssertionError: expected [] to deeply equal [ ObjectContaining{…}, …(2) ] - Expected + Received - Array [ - ObjectContaining { - "clientId": "ably-chat-js-client-3mmua8", - "serial": "01733149573228-000@e7d62b_vwBjD5p79272889:000", - "text": "Hello there!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-3mmua8", - "serial": "01733149573247-000@e7d62b_vwBjD5p79272889:000", - "text": "I have the high ground!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-3mmua8", - "serial": "01733149573262-000@e7d62b_vwBjD5p79272889:000", - "text": "You underestimate my power!", - }, - ] + Array [] ❯ test/core/messages.integration.test.ts:223:27
test/core/messages.integration.test.ts > messages integration > should be able to paginate chat history: test/core/messages.integration.test.ts#L323
AssertionError: expected [] to deeply equal [ ObjectContaining{…}, …(2) ] - Expected + Received - Array [ - ObjectContaining { - "clientId": "ably-chat-js-client-q4msxn", - "serial": "01733149573559-000@e7dc0GShABjD3s99327325:000", - "text": "Hello there!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-q4msxn", - "serial": "01733149573579-000@e7dc0GShABjD3s99327325:000", - "text": "I have the high ground!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-q4msxn", - "serial": "01733149573595-000@e7dc0GShABjD3s99327325:000", - "text": "You underestimate my power!", - }, - ] + Array [] ❯ test/core/messages.integration.test.ts:323:28
test/core/messages.integration.test.ts > messages integration > should be able to paginate chat history (msgpack): test/core/messages.integration.test.ts#L428
AssertionError: expected [] to deeply equal [ ObjectContaining{…}, …(2) ] - Expected + Received - Array [ - ObjectContaining { - "clientId": "ably-chat-js-client-ppt72k", - "serial": "01733149573814-000@e7dxVSVlgBjD3t29239375:000", - "text": "Hello there!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-ppt72k", - "serial": "01733149573830-000@e7dxVSVlgBjD3t29239375:000", - "text": "I have the high ground!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-ppt72k", - "serial": "01733149573845-000@e7dxVSVlgBjD3t29239375:000", - "text": "You underestimate my power!", - }, - ] + Array [] ❯ test/core/messages.integration.test.ts:428:28
test/core/messages.integration.test.ts > messages integration > should be able to paginate chat history, but backwards: test/core/messages.integration.test.ts#L478
AssertionError: expected [] to deeply equal [ ObjectContaining{…}, …(2) ] - Expected + Received - Array [ - ObjectContaining { - "clientId": "ably-chat-js-client-2br5dt", - "serial": "01733149574511-000@e7dxVSVlgBjD3t73206772:000", - "text": "Don't try it!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-2br5dt", - "serial": "01733149574483-000@e7dxVSVlgBjD3t73206772:000", - "text": "You underestimate my power!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-2br5dt", - "serial": "01733149574458-000@e7dxVSVlgBjD3t73206772:000", - "text": "I have the high ground!", - }, - ] + Array [] ❯ test/core/messages.integration.test.ts:478:28
test/core/messages.integration.test.ts > messages integration > should be able to send, receive and query chat messages with metadata and headers: test/core/messages.integration.test.ts#L566
AssertionError: expected 1 to deeply equal 2 - Expected + Received - 2 + 1 ❯ test/core/messages.integration.test.ts:566:34
test/core/messages.integration.test.ts > messages integration > should be able to get history for listener from attached serial: test/core/messages.integration.test.ts#L594
AssertionError: expected [] to deeply equal [ ObjectContaining{…}, …(1) ] - Expected + Received - Array [ - ObjectContaining { - "clientId": "ably-chat-js-client-qmmpz", - "serial": "01733149575749-000@e7dc0GShABjD3s17790409:000", - "text": "I have the high ground!", - }, - ObjectContaining { - "clientId": "ably-chat-js-client-qmmpz", - "serial": "01733149575733-000@e7dc0GShABjD3s17790409:000", - "text": "Hello there!", - }, - ] + Array [] ❯ test/core/messages.integration.test.ts:594:43