Skip to content

Commit

Permalink
Add description for client test
Browse files Browse the repository at this point in the history
  • Loading branch information
chacha912 committed Mar 6, 2023
1 parent 68dda64 commit 9ad0c7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/client_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,11 @@ describe('Client', function () {
unsub2();
});

it('client event flow', async function () {
it('client.subscribe correctly detects the events', async function () {
// The test verifies whether `client.subscribe` correctly detects events
// when the client performs activate, attach, updatePresence, detach, and deactivate.
// Please refer to the figure in the yorkie-js-sdk issue for the test code flow.
// https://github.com/yorkie-team/yorkie-js-sdk/pull/464
type PresenceType = {
name: string;
cursor: { x: number; y: number };
Expand Down

0 comments on commit 9ad0c7b

Please sign in to comment.