File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ export function createWebXdc(
50
50
51
51
const webXdc : WebXdc < any > = {
52
52
sendUpdate : ( update , descr ) => {
53
- transport . send ( { type : "sendUpdate" , update, descr } ) ;
54
- log ( "send" , { update, descr } ) ;
53
+ transport . send ( { type : "sendUpdate" , update } ) ;
54
+ log ( "send" , { update } ) ;
55
55
} ,
56
56
setUpdateListener : ( listener , serial = 0 ) : Promise < void > => {
57
57
transport . onMessage ( ( message ) => {
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ class FakeTransport implements Transport {
27
27
28
28
send ( data : any ) {
29
29
if ( data . type === "sendUpdate" ) {
30
- const { update, descr } = data ;
31
- this . client . sendUpdate ( update , descr ) ;
30
+ const { update} = data ;
31
+ this . client . sendUpdate ( update , "" ) ;
32
32
} else if ( data . type === "setUpdateListener" ) {
33
33
this . client . connect (
34
34
( updates ) => {
@@ -106,7 +106,7 @@ test("webxdc sends", async () => {
106
106
} , 0 ) ;
107
107
fakeTransport . connect ( ) ;
108
108
await promise ;
109
- webXdc . sendUpdate ( { payload : "hello" } , "sent 1 " ) ;
109
+ webXdc . sendUpdate ( { payload : "hello" } , "" ) ;
110
110
expect ( updates ) . toEqual ( [
111
111
{
112
112
payload : "hello" ,
@@ -148,7 +148,7 @@ test("webxdc distributes", async () => {
148
148
fakeTransportB . connect ( ) ;
149
149
await promiseB ;
150
150
151
- webXdcA . sendUpdate ( { payload : "hello" } , "sent 1 " ) ;
151
+ webXdcA . sendUpdate ( { payload : "hello" } , "" ) ;
152
152
expect ( updatesA ) . toEqual ( [
153
153
{
154
154
payload : "hello" ,
You can’t perform that action at this time.
0 commit comments