feat(lib): add test changes #596
GitHub Actions / Test results
failed
Oct 17, 2023 in 0s
Test results ❌
❌ lib/junit.xml
9 tests were completed in 5s with 8 passed, 1 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
User test | 8✅ | 1❌ | 5s |
❌ 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
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
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
Annotations
Check failure on line 60 in lib/tests/user.test.ts
github-actions / Test results
User test ► User test Should stream user updates and invoke the callback ► User test Should stream user updates and invoke the callback
Failed test found in:
lib/junit.xml
Error:
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Raw output
Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)
Expected number of calls: 1
Received number of calls: 2
at Object.toHaveBeenCalledTimes (/home/runner/work/js-chat/js-chat/lib/tests/user.test.ts:60:22)
Loading