Skip to content

feat(lib): use getUser #522

feat(lib): use getUser

feat(lib): use getUser #522

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Test results succeeded Sep 21, 2023 in 1s

Test results ✅

Tests passed successfully

✅ lib/junit.xml

61 tests were completed in 73s with 60 passed, 0 failed and 1 skipped.

Test suite Passed Failed Skipped Time
Channel test 8✅ 278ms
Channel test 30✅ 1⚪ 73s
Send message test 14✅ 39s
Typing indicator test 2✅ 6s
User test 6✅ 9s

✅ 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

✅ 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 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 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

✅ 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 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

✅ 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 no typing signal is received
  ✅ Typing indicator test should not call the callback when no typing signal is received

✅ 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 report a user
  ✅ User test should report a user