Skip to content

Commit

Permalink
test: refactor with new WS API
Browse files Browse the repository at this point in the history
  • Loading branch information
codeofmochi committed Aug 5, 2021
1 parent 702b2b7 commit 0c0fe8b
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ describe('Websocket interactions', () => {
client.receive({
realm: 'notif',
type: 'update',
topic: 'item/member',
channel: CURRENT_USER.id,
body: {
entity: 'member',
kind: 'sharedWith',
kind: 'shared',
op: 'create',
value: item,
item,
},
});
});
Expand All @@ -64,12 +64,12 @@ describe('Websocket interactions', () => {
client.receive({
realm: 'notif',
type: 'update',
topic: 'item/member',
channel: CURRENT_USER.id,
body: {
entity: 'member',
kind: 'sharedWith',
kind: 'shared',
op: 'delete',
value: item,
item,
},
});
});
Expand Down Expand Up @@ -101,12 +101,12 @@ describe('Websocket interactions', () => {
client.receive({
realm: 'notif',
type: 'update',
topic: 'item',
channel: id,
body: {
entity: 'item',
kind: 'childItem',
kind: 'child',
op: 'create',
value: item,
item,
},
});

Expand All @@ -122,12 +122,12 @@ describe('Websocket interactions', () => {
client.receive({
realm: 'notif',
type: 'update',
topic: 'item',
channel: id,
body: {
entity: 'item',
kind: 'childItem',
kind: 'child',
op: 'delete',
value: item,
item,
},
});

Expand Down

0 comments on commit 0c0fe8b

Please sign in to comment.