feat(lib): organization changes #763
GitHub Actions / Test results
succeeded
Nov 15, 2024 in 1s
132 passed, 0 failed and 3 skipped
✅ lib/junit.xml
135 tests were completed in 236s with 132 passed, 0 failed and 3 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Channel test | 45✅ | 1⚪ | 76s | |
Channel test | 8✅ | 329ms | ||
MessageDraft | 11✅ | 12s | ||
Pubnub Access Manager | 7✅ | 506ms | ||
Send message test | 46✅ | 1⚪ | 117s | |
Typing indicator test | 3✅ | 1⚪ | 15s | |
User test | 12✅ | 15s |
✅ Channel test
Channel test should create a channel
✅ Channel test should create a channel
Channel test Should be able to delete channel
✅ Channel test Should be able to delete channel
Channel test should get channel history
✅ Channel test should get channel history
Channel test should get channel history with pagination
✅ Channel test should get channel history with pagination
Channel test should fail when trying to send a message to a non-existent channel
✅ Channel test should fail when trying to send a message to a non-existent channel
Channel test should fail when trying to send a message to a deleted channel
✅ Channel test should fail when trying to send a message to a deleted channel
Channel test should fail when trying to get history of a deleted channel
✅ Channel test should fail when trying to get history of a deleted channel
Channel test should edit membership metadata
✅ Channel test should edit membership metadata
Channel test should create a direct, group and public chats with a predefined ID
✅ Channel test should create a direct, group and public chats with a predefined ID
Channel test should create a direct, group and public chats with default IDs
✅ Channel test should create a direct, group and public chats with default IDs
Channel test should create direct conversation and send message
✅ Channel test should create direct conversation and send message
Channel test should create group conversation
✅ Channel test should create group conversation
Channel test should create a thread
✅ Channel test should create a thread
Channel test should not be able to create an empty Thread without any message
✅ Channel test should not be able to create an empty Thread without any message
Channel test should stream channel updates and invoke the callback
✅ Channel test should stream channel updates and invoke the callback
Channel test should stream membership updates and invoke the callback
✅ Channel test should stream membership updates and invoke the callback
Channel test should get unread messages count
✅ Channel test should get unread messages count
Channel test should mention users in a message and validate mentioned users
✅ Channel test should mention users in a message and validate mentioned users
Channel test should mention users with multi-word names in a message and validate mentioned users
✅ Channel test should mention users with multi-word names in a message and validate mentioned users
Channel test should send a message with words that start with @ but are not user mentions
✅ Channel test should send a message with words that start with @ but are not user mentions
Channel test should try to mention users with incorrect usernames and validate no users are mentioned
✅ Channel test should try to mention users with incorrect usernames and validate no users are mentioned
Channel test should suggest global users who are not members of the channel
✅ Channel test should suggest global users who are not members of the channel
Channel test should mention the same user multiple times in a message and validate mentioned users
✅ Channel test should mention the same user multiple times in a message and validate mentioned users
Channel test should correctly add and remove mentioned user
✅ Channel test should correctly add and remove mentioned user
Channel test should correctly add and remove the middle mentioned user
✅ Channel test should correctly add and remove the middle mentioned user
Channel test should mention user in a message and validate cache
⚪ Channel test should mention user in a message and validate cache
Channel test should add and remove a quote
✅ Channel test should add and remove a quote
Channel test should throw an error when trying to quote a message from another channel
✅ Channel test should throw an error when trying to quote a message from another channel
Channel test should quote multiple messages
✅ Channel test should quote multiple messages
Channel test should correctly stream read receipts
✅ Channel test should correctly stream read receipts
Channel test should invite a user to the channel
✅ Channel test should invite a user to the channel
Channel test should invite multiple users to the channel
✅ Channel test should invite multiple users to the channel
Channel test should verify if user is a member of a channel
✅ Channel test should verify if user is a member of a channel
Channel test should verify if user is online on a channel
✅ Channel test should verify if user is online on a channel
Channel test should verify all user-related mentions using getCurrentUserMentions()
✅ Channel test should verify all user-related mentions using getCurrentUserMentions()
Channel test Should fail when trying to edit membership metadata of a non-existent channel
✅ Channel test Should fail when trying to edit membership metadata of a non-existent channel
Channel test Should create direct conversation, edit, and delete a message
✅ Channel test Should create direct conversation, edit, and delete a message
Channel test should create, reply to, and delete a thread
✅ Channel test should create, reply to, and delete a thread
Channel test should create, reply to, delete a thread, and recreate the deleted thread
✅ Channel test should create, reply to, delete a thread, and recreate the deleted thread
Channel test Should mention users with special characters in their names and validate mentioned users
✅ Channel test Should mention users with special characters in their names and validate mentioned users
Channel test should create a group chat channel
✅ Channel test should create a group chat channel
Channel test should create a public chat channel
✅ Channel test should create a public chat channel
Channel test should set (or lift) restrictions on a user
✅ Channel test should set (or lift) restrictions on a user
Channel test Should get the number of unread messages on channels
✅ Channel test Should get the number of unread messages on channels
Channel test should set 'eTag' and 'updated' on the Membership object
✅ Channel test should set 'eTag' and 'updated' on the Membership object
Channel test should set 'eTag' and 'updated' on the Membership object in real time
✅ Channel test should set 'eTag' and 'updated' on the Membership object in real time
✅ Channel test
Channel test should convert unix timestamp to PubNub timetoken
✅ Channel test should convert unix timestamp to PubNub timetoken
Channel test should throw an error if the passed value for unix timestamp is not a number
✅ Channel test should throw an error if the passed value for unix timestamp is not a number
Channel test should convert PubNub timetoken to unix timestamp
✅ Channel test should convert PubNub timetoken to unix timestamp
Channel test should throw an error if the passed value for PN timetoken is not a number
✅ Channel test should throw an error if the passed value for PN timetoken is not a number
✅ Channel test should throw an error if the passed value for PN timetoken is not a number
Channel test should convert PubNub timetoken to a Date object
✅ Channel test should convert PubNub timetoken to a Date object
Channel test should convert a Date object to PubNub timetoken
✅ Channel test should convert a Date object to PubNub timetoken
Channel test should throw an error if the passed value for Date is not a Date
✅ Channel test should throw an error if the passed value for Date is not a Date
✅ MessageDraft
MessageDraft should mention 2 users
✅ MessageDraft should mention 2 users
MessageDraft should mention 2 - 3 users next to each other
✅ MessageDraft should mention 2 - 3 users next to each other
MessageDraft should mention 2 - 3 users with words between second and third
✅ MessageDraft should mention 2 - 3 users with words between second and third
MessageDraft should reference 2 channels
✅ MessageDraft should reference 2 channels
MessageDraft should reference 2 channels and 2 mentions
✅ MessageDraft should reference 2 channels and 2 mentions
MessageDraft should reference 2 channels and 2 mentions with commas
✅ MessageDraft should reference 2 channels and 2 mentions with commas
MessageDraft should reference 2 channels and 2 mentions with commas - another variation
✅ MessageDraft should reference 2 channels and 2 mentions with commas - another variation
MessageDraft should add 2 text links and 2 plain links
✅ MessageDraft should add 2 text links and 2 plain links
MessageDraft should mix every type of message part
✅ MessageDraft should mix every type of message part
MessageDraft should mix every type of message part - variant 2
✅ MessageDraft should mix every type of message part - variant 2
MessageDraft should reference 3 channels and 3 mentions with no order
✅ MessageDraft should reference 3 channels and 3 mentions with no order
✅ Pubnub Access Manager
Pubnub Access Manager should acknowledge proper access on 'channels' based on resources
✅ Pubnub Access Manager should acknowledge proper access on 'channels' based on resources
Pubnub Access Manager should acknowledge proper access on 'channels' based on patterns
✅ Pubnub Access Manager should acknowledge proper access on 'channels' based on patterns
Pubnub Access Manager should return false for every resource and pattern which is not found
✅ Pubnub Access Manager should return false for every resource and pattern which is not found
Pubnub Access Manager should return true when auth key is not defined
✅ Pubnub Access Manager should return true when auth key is not defined
Pubnub Access Manager should work if only 'resources' are provided
✅ Pubnub Access Manager should work if only 'resources' are provided
Pubnub Access Manager should work if only 'patterns' are provided
✅ Pubnub Access Manager should work if only 'patterns' are provided
Pubnub Access Manager should throw an error when PAM does not grant 'write' access
✅ Pubnub Access Manager should throw an error when PAM does not grant 'write' access
✅ 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 report a message (deprecated)
✅ Send message test should report a message (deprecated)
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
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
✅ Typing indicator test
Typing indicator test should call the callback with the typing value when a typing signal is received
✅ Typing indicator test should call the callback with the typing value when a typing signal is received
Typing indicator test should not call the callback when the typing signal is from the same user as the recipient
⚪ Typing indicator test should not call the callback when the typing signal is from the same user as the recipient
Typing indicator test should handle multiple users starting and stopping typing
✅ Typing indicator test should handle multiple users starting and stopping typing
Typing indicator test should properly handle typing and stopping typing
✅ Typing indicator test should properly handle typing and stopping typing
✅ User test
User test Should automatically create chat user while initializing
✅ User test Should automatically create chat user while initializing
User test Should be able to create and fetch user
✅ User test Should be able to create and fetch user
User test Should be able to update user
✅ User test Should be able to update user
User test Should be able to delete user
✅ User test Should be able to delete user
User test Should stream user updates and invoke the callback
✅ User test Should stream user updates and invoke the callback
User test should update the user even if they're a member of a particular channel
✅ User test should update the user even if they're a member of a particular channel
User test should update the user even if they're not a member of a particular channel
✅ User test should update the user even if they're not a member of a particular channel
User test should report a user
✅ User test should report a user
User test Should be able to create, fetch, and validate multiple users
✅ User test Should be able to create, fetch, and validate multiple users
User test Should fail to update a non-existent user
✅ User test Should fail to update a non-existent user
User test Should fail to delete a non-existent user
✅ User test Should fail to delete a non-existent user
User test Should apply filter to 'getMemberships'
✅ User test Should apply filter to 'getMemberships'
Loading