Skip to content

feat(lib): extend filter property for memberships (#170) #727

feat(lib): extend filter property for memberships (#170)

feat(lib): extend filter property for memberships (#170) #727

GitHub Actions / Test results failed Jun 5, 2024 in 1s

44 passed, 1 failed and 1 skipped

Tests failed

❌ lib/junit.xml

46 tests were completed in 92s with 44 passed, 1 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Send message test 44✅ 1❌ 1⚪ 92s

❌ Send message test

Send message test should send and receive unicode messages correctly
  ✅ Send message test should send and receive unicode messages correctly
Send message test should send and receive regular text messages correctly
  ✅ Send message test should send and receive regular text messages correctly
Send message test should delete the message
  ✅ Send message test should delete the message
Send message test should restore a soft deleted message
  ✅ Send message test should restore a soft deleted message
Send message test should restore a soft deleted message together with its thread
  ✅ Send message test should restore a soft deleted message together with its thread
Send message test should only log a warning if you try to restore an undeleted message
  ✅ Send message test should only log a warning if you try to restore an undeleted message
Send message test should throw an error if you try to create a thread on a deleted message
  ✅ Send message test should throw an error if you try to create a thread on a deleted message
Send message test should edit the message
  ✅ Send message test should edit the message
Send message test should toggle the message reaction
  ✅ Send message test should toggle the message reaction
Send message test should pin the message
  ✅ Send message test should pin the message
Send message test should unpin the message
  ✅ Send message test should unpin the message
Send message test should stream message updates and invoke the callback
  ✅ Send message test should stream message updates and invoke the callback
Send message test should render URLs correctly
  ✅ Send message test should render URLs correctly
Send message test should add linked text correctly
  ✅ Send message test should add linked text correctly
Send message test should throw an error for invalid link format
  ✅ Send message test should throw an error for invalid link format
Send message test should throw an error if adding a link inside another link
  ✅ Send message test should throw an error if adding a link inside another link
Send message test should remove a linked URL correctly
  ✅ Send message test should remove a linked URL correctly
Send message test should report a message
  ✅ Send message test should report a message
Send message test should send multiple image files along with a text message correctly
  ✅ Send message test should send multiple image files along with a text message correctly
Send message test should send image file along with a text message correctly
  ✅ Send message test should send image file along with a text message correctly
Send message test should send pdf file along with a text message correctly
  ✅ Send message test should send pdf file along with a text message correctly
Send message test should send txt file along with a text message correctly
  ✅ Send message test should send txt file along with a text message correctly
Send message test should send mp4 file along with a text message correctly
  ✅ Send message test should send mp4 file along with a text message correctly
Send message test should send multiple different types of files along with a text message correctly
  ✅ Send message test should send multiple different types of files along with a text message correctly
Send message test shouldn't allow to send image file over 5 mb along with a text message
  ⚪ Send message test shouldn't allow to send image file over 5 mb along with a text message
Send message test should send 3 messages with proper delays and verify rate limiter
  ✅ Send message test should send 3 messages with proper delays and verify rate limiter
Send message test should send long messages and validate correct rendering
  ✅ Send message test should send long messages and validate correct rendering
Send message test should fail to send an empty or whitespace-only message
  ✅ Send message test should fail to send an empty or whitespace-only message
Send message test should send and receive messages in various languages correctly
  ✅ Send message test should send and receive messages in various languages correctly
Send message test should toggle the message reaction and then delete the message reaction
  ✅ Send message test should toggle the message reaction and then delete the message reaction
Send message test should be unable to pin multiple messages
  ✅ Send message test should be unable to pin multiple messages
Send message test should not allow inserting a link inside another link
  ✅ Send message test should not allow inserting a link inside another link
Send message test should send quote message in a Thread
  ✅ Send message test should send quote message in a Thread
Send message test should pin the message inside the Thread
  ✅ Send message test should pin the message inside the Thread
Send message test should encrypt and decrypt a message
  ✅ Send message test should encrypt and decrypt a message
Send message test should encrypt and decrypt a file
  ✅ Send message test should encrypt and decrypt a file
Send message test should still view text messages sent before enabling encryption
  ✅ Send message test should still view text messages sent before enabling encryption
Send message test should still view files sent before enabling encryption
  ✅ Send message test should still view files sent before enabling encryption
Send message test should be able to decrypt text and file messages sent using a previous encryption key
  ✅ Send message test should be able to decrypt text and file messages sent using a previous encryption key
Send message test should send a message with custom body and transform it to TextMessageContent when received
  ✅ Send message test should send a message with custom body and transform it to TextMessageContent when received
Send message test should send a message with custom body and crash if getMessageResponseBody is incorrect
  ✅ Send message test should send a message with custom body and crash if getMessageResponseBody is incorrect
Send message test should be able to pass custom edit and delete action names
  ✅ Send message test should be able to pass custom edit and delete action names
Send message test should work fine even for multiple schemas on different channels
  ✅ Send message test should work fine even for multiple schemas on different channels
Send message test should be able to read live messages with custom payloads as well
  ❌ Send message test should be able to read live messages with custom payloads as well
	Error: expect(received).toBe(expected) // Object.is equality
Send message test should be able to read live encrypted messages with custom payloads
  ✅ Send message test should be able to read live encrypted messages with custom payloads
Send message test should be able to read historic encrypted messages with custom payloads
  ✅ Send message test should be able to read historic encrypted messages with custom payloads

Annotations

Check failure on line 1560 in lib/tests/message.test.ts

See this annotation in the file changed.

@github-actions github-actions / Test results

Send message test ► Send message test should be able to read live messages with custom payloads as well ► Send message test should be able to read live messages with custom payloads as well

Failed test found in:
  lib/junit.xml
Error:
  Error: expect(received).toBe(expected) // Object.is equality
Raw output
Error: expect(received).toBe(expected) // Object.is equality

Expected: "Hello live world!"
Received: ""
    at Object.toBe (/home/runner/work/js-chat/js-chat/lib/tests/message.test.ts:1560:29)