Skip to content

feat(lib): add default ids to channels, create a new event and forwar… #626

feat(lib): add default ids to channels, create a new event and forwar…

feat(lib): add default ids to channels, create a new event and forwar… #626

GitHub Actions / Test results failed Oct 27, 2023 in 0s

Test results ❌

Tests failed

❌ lib/junit.xml

4 tests were completed in 19s with 3 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Typing indicator test 3✅ 1❌ 19s

❌ 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
	Error: expect(jest.fn()).not.toHaveBeenCalled()
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

Annotations

Check failure on line 65 in lib/tests/typing-indicator.test.ts

See this annotation in the file changed.

@github-actions github-actions / Test results

Typing indicator test ► 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

Failed test found in:
  lib/junit.xml
Error:
  Error: expect(jest.fn()).not.toHaveBeenCalled()
Raw output
Error: expect(jest.fn()).not.toHaveBeenCalled()

Expected number of calls: 0
Received number of calls: 1

1: ["testing"]
    at Object.toHaveBeenCalled (/home/runner/work/js-chat/js-chat/lib/tests/typing-indicator.test.ts:65:26)