core: change direction to orderBy for history, use enum #1819
dev.yml
on: pull_request
audit
1m 4s
format-check
1m 4s
lint
1m 19s
test-typescript
1m 8s
test
2m 1s
build
1m 8s
demo-app
2m 28s
Annotations
8 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-vf3dc",
- "text": "my message",
- },
- ]
+ Array []
❯ test/core/chat.integration.test.ts:64:27
|
test/core/messages.integration.test.ts > messages integration > should be able to retrieve chat history:
test/core/messages.integration.test.ts#L224
AssertionError: expected [] to deeply equal [ ObjectContaining{…}, …(2) ]
- Expected
+ Received
- Array [
- ObjectContaining {
- "clientId": "ably-chat-js-client-h1p5e",
- "serial": "01733140054079-000@e7d-AgH_gBjCoT27117263:000",
- "text": "Hello there!",
- },
- ObjectContaining {
- "clientId": "ably-chat-js-client-h1p5e",
- "serial": "01733140054101-000@e7d-AgH_gBjCoT27117263:000",
- "text": "I have the high ground!",
- },
- ObjectContaining {
- "clientId": "ably-chat-js-client-h1p5e",
- "serial": "01733140054119-000@e7d-AgH_gBjCoT27117263:000",
- "text": "You underestimate my power!",
- },
- ]
+ Array []
❯ test/core/messages.integration.test.ts:224:27
|
test/core/messages.integration.test.ts > messages integration > should be able to paginate chat history:
test/core/messages.integration.test.ts#L348
AssertionError: expected [] to deeply equal [ ObjectContaining{…} ]
- Expected
+ Received
- Array [
- ObjectContaining {
- "clientId": "ably-chat-js-client-k4ecni",
- "serial": "01733140054782-000@e7dn3T36wBjCrD96261438:000",
- "text": "Don't try it!",
- },
- ]
+ Array []
❯ test/core/messages.integration.test.ts:348:29
|
test/core/messages.integration.test.ts > messages integration > should be able to paginate chat history (msgpack):
test/core/messages.integration.test.ts#L453
AssertionError: expected [] to deeply equal [ ObjectContaining{…} ]
- Expected
+ Received
- Array [
- ObjectContaining {
- "clientId": "ably-chat-js-client-7l5fsk",
- "serial": "01733140055512-000@e7dnR-JpABjCs871883512:000",
- "text": "Don't try it!",
- },
- ]
+ Array []
❯ test/core/messages.integration.test.ts:453:29
|
test/core/messages.integration.test.ts > messages integration > should be able to paginate chat history, but backwards:
test/core/messages.integration.test.ts#L479
AssertionError: expected [] to deeply equal [ ObjectContaining{…}, …(2) ]
- Expected
+ Received
- Array [
- ObjectContaining {
- "clientId": "ably-chat-js-client-g33xaw",
- "serial": "01733140056164-000@e7dzKNduABjCoS68422340:000",
- "text": "Don't try it!",
- },
- ObjectContaining {
- "clientId": "ably-chat-js-client-g33xaw",
- "serial": "01733140056147-000@e7dzKNduABjCoS68422340:000",
- "text": "You underestimate my power!",
- },
- ObjectContaining {
- "clientId": "ably-chat-js-client-g33xaw",
- "serial": "01733140056131-000@e7dzKNduABjCoS68422340:000",
- "text": "I have the high ground!",
- },
- ]
+ Array []
❯ test/core/messages.integration.test.ts:479:28
|
test/react/hooks/use-messages.integration.test.tsx > useMessages > should reset getPreviousMessages if the listener becomes undefined then redefined:
test/react/hooks/use-messages.integration.test.tsx#L435
AssertionError: expected +0 to be 3 // Object.is equality
- Expected
+ Received
- 3
+ 0
❯ test/react/hooks/use-messages.integration.test.tsx:435:35
|
test/react/hooks/use-messages.integration.test.tsx > useMessages > should persist the getPreviousMessages subscription point across renders, if listener remains defined:
test/react/hooks/use-messages.integration.test.tsx#L551
AssertionError: expected 'Time is an illusion. Lunchtime doubly…' to be 'You underestimate my power' // Object.is equality
Expected: "You underestimate my power"
Received: "Time is an illusion. Lunchtime doubly so."
❯ test/react/hooks/use-messages.integration.test.tsx:551:30
|
test
Process completed with exit code 1.
|