@@ -778,7 +778,7 @@ define(['ably', 'shared_helper', 'chai', 'objects', 'objects_helper'], function
778778 root . get ( 'counter' ) . subscribe ( ( update ) => {
779779 try {
780780 expect ( update ) . to . deep . equal (
781- { update : { inc : - 1 } } ,
781+ { update : { amount : - 1 } } ,
782782 'Check counter subscription callback is called with an expected update object after STATE_SYNC sequence with "tombstone=true"' ,
783783 ) ;
784784 resolve ( ) ;
@@ -1776,7 +1776,7 @@ define(['ably', 'shared_helper', 'chai', 'objects', 'objects_helper'], function
17761776 root . get ( 'counter' ) . subscribe ( ( update ) => {
17771777 try {
17781778 expect ( update ) . to . deep . equal (
1779- { update : { inc : - 1 } } ,
1779+ { update : { amount : - 1 } } ,
17801780 'Check counter subscription callback is called with an expected update object after OBJECT_DELETE operation' ,
17811781 ) ;
17821782 resolve ( ) ;
@@ -3567,7 +3567,7 @@ define(['ably', 'shared_helper', 'chai', 'objects', 'objects_helper'], function
35673567 counter . subscribe ( ( update ) => {
35683568 try {
35693569 expect ( update ) . to . deep . equal (
3570- { update : { inc : 1 } } ,
3570+ { update : { amount : 1 } } ,
35713571 'Check counter subscription callback is called with an expected update object for COUNTER_INC operation' ,
35723572 ) ;
35733573 resolve ( ) ;
@@ -3604,7 +3604,7 @@ define(['ably', 'shared_helper', 'chai', 'objects', 'objects_helper'], function
36043604 try {
36053605 const expectedInc = expectedCounterIncrements [ currentUpdateIndex ] ;
36063606 expect ( update ) . to . deep . equal (
3607- { update : { inc : expectedInc } } ,
3607+ { update : { amount : expectedInc } } ,
36083608 `Check counter subscription callback is called with an expected update object for ${ currentUpdateIndex + 1 } times` ,
36093609 ) ;
36103610
0 commit comments