@@ -42,13 +42,13 @@ describe("applyEventBatchToState (inline)", () => {
4242
4343 const l = doc . getList ( "l" ) ;
4444 l . insert ( 0 , "x" ) ;
45- await commitAndAssert ( doc , ( ) => state ) ;
45+ commitAndAssert ( doc , ( ) => state ) ;
4646
4747 l . insert ( 1 , "y" ) ;
48- await commitAndAssert ( doc , ( ) => state ) ;
48+ commitAndAssert ( doc , ( ) => state ) ;
4949
5050 l . delete ( 0 , 1 ) ;
51- await commitAndAssert ( doc , ( ) => state ) ;
51+ commitAndAssert ( doc , ( ) => state ) ;
5252
5353 unsub ( ) ;
5454 } ) ;
@@ -64,10 +64,10 @@ describe("applyEventBatchToState (inline)", () => {
6464
6565 const t = doc . getText ( "t" ) ;
6666 t . update ( "Hello" ) ;
67- await commitAndAssert ( doc , ( ) => state ) ;
67+ commitAndAssert ( doc , ( ) => state ) ;
6868
6969 t . update ( "Hello World" ) ;
70- await commitAndAssert ( doc , ( ) => state ) ;
70+ commitAndAssert ( doc , ( ) => state ) ;
7171
7272 unsub ( ) ;
7373 } ) ;
@@ -85,10 +85,10 @@ describe("applyEventBatchToState (inline)", () => {
8585 const inner = new LoroText ( ) ;
8686 inner . update ( "Hi" ) ;
8787 m . setContainer ( "inner" , inner ) ;
88- await commitAndAssert ( doc , ( ) => state ) ;
88+ commitAndAssert ( doc , ( ) => state ) ;
8989
9090 inner . update ( "Hello" ) ;
91- await commitAndAssert ( doc , ( ) => state ) ;
91+ commitAndAssert ( doc , ( ) => state ) ;
9292
9393 unsub ( ) ;
9494 } ) ;
@@ -105,13 +105,13 @@ describe("applyEventBatchToState (inline)", () => {
105105 const m = doc . getMap ( "m" ) ;
106106 // Setting null should persist as a normal value
107107 m . set ( "a" , null ) ;
108- await commitAndAssert ( doc , ( ) => state ) ;
108+ commitAndAssert ( doc , ( ) => state ) ;
109109
110110 // Setting a value then deleting it removes the key
111111 m . set ( "a" , 42 ) ;
112- await commitAndAssert ( doc , ( ) => state ) ;
112+ commitAndAssert ( doc , ( ) => state ) ;
113113 m . delete ( "a" ) ;
114- await commitAndAssert ( doc , ( ) => state ) ;
114+ commitAndAssert ( doc , ( ) => state ) ;
115115
116116 unsub ( ) ;
117117 } ) ;
@@ -128,13 +128,13 @@ describe("applyEventBatchToState (inline)", () => {
128128 const list = doc . getList ( "list" ) ;
129129 const text = list . insertContainer ( 0 , new LoroText ( ) ) ;
130130 text . update ( "Item 0" ) ;
131- await commitAndAssert ( doc , ( ) => state ) ;
131+ commitAndAssert ( doc , ( ) => state ) ;
132132
133133 list . insert ( 1 , "plain" ) ;
134- await commitAndAssert ( doc , ( ) => state ) ;
134+ commitAndAssert ( doc , ( ) => state ) ;
135135
136136 text . update ( "Item 0 updated" ) ;
137- await commitAndAssert ( doc , ( ) => state ) ;
137+ commitAndAssert ( doc , ( ) => state ) ;
138138
139139 unsub ( ) ;
140140 } ) ;
@@ -152,10 +152,10 @@ describe("applyEventBatchToState (inline)", () => {
152152 ml . push ( "a" ) ;
153153 ml . push ( "b" ) ;
154154 ml . push ( "c" ) ;
155- await commitAndAssert ( doc , ( ) => state ) ;
155+ commitAndAssert ( doc , ( ) => state ) ;
156156
157157 ml . move ( 0 , 2 ) ; // [b, c, a]
158- await commitAndAssert ( doc , ( ) => state ) ;
158+ commitAndAssert ( doc , ( ) => state ) ;
159159
160160 unsub ( ) ;
161161 } ) ;
@@ -173,10 +173,10 @@ describe("applyEventBatchToState (inline)", () => {
173173 const list = rootMap . setContainer ( "list" , new LoroList ( ) ) ;
174174 const innerMap = list . insertContainer ( 0 , new LoroMap ( ) ) ;
175175 innerMap . set ( "k" , 1 ) ;
176- await commitAndAssert ( doc , ( ) => state ) ;
176+ commitAndAssert ( doc , ( ) => state ) ;
177177
178178 innerMap . set ( "k" , 2 ) ;
179- await commitAndAssert ( doc , ( ) => state ) ;
179+ commitAndAssert ( doc , ( ) => state ) ;
180180
181181 unsub ( ) ;
182182 } ) ;
@@ -216,10 +216,10 @@ describe("applyEventBatchToState (inline)", () => {
216216
217217 const c = doc . getCounter ( "count" ) ;
218218 c . increment ( 5 ) ;
219- await commitAndAssert ( doc , ( ) => state ) ;
219+ commitAndAssert ( doc , ( ) => state ) ;
220220
221221 c . decrement ( 2 ) ;
222- await commitAndAssert ( doc , ( ) => state ) ;
222+ commitAndAssert ( doc , ( ) => state ) ;
223223
224224 unsub ( ) ;
225225 } ) ;
@@ -239,11 +239,11 @@ describe("applyEventBatchToState (inline)", () => {
239239 const l = doc . getList ( "l" ) ;
240240 l . push ( 1 ) ;
241241 l . push ( 2 ) ;
242- await commitAndAssert ( doc , ( ) => state ) ;
242+ commitAndAssert ( doc , ( ) => state ) ;
243243
244244 m . clear ( ) ;
245245 l . clear ( ) ;
246- await commitAndAssert ( doc , ( ) => state ) ;
246+ commitAndAssert ( doc , ( ) => state ) ;
247247
248248 unsub ( ) ;
249249 } ) ;
@@ -261,14 +261,14 @@ describe("applyEventBatchToState (inline)", () => {
261261 ml . push ( "x" ) ;
262262 ml . push ( "y" ) ;
263263 ml . push ( "z" ) ;
264- await commitAndAssert ( doc , ( ) => state ) ;
264+ commitAndAssert ( doc , ( ) => state ) ;
265265
266266 // Replace middle with a container and delete last in one commit
267267 const t = new LoroText ( ) ;
268268 t . update ( "middle" ) ;
269269 ml . setContainer ( 1 , t ) ;
270270 ml . delete ( 2 , 1 ) ;
271- await commitAndAssert ( doc , ( ) => state ) ;
271+ commitAndAssert ( doc , ( ) => state ) ;
272272
273273 unsub ( ) ;
274274 } ) ;
@@ -288,11 +288,11 @@ describe("applyEventBatchToState (inline)", () => {
288288 const cnt2 = lst . insertContainer ( 0 , new LoroCounter ( ) ) ;
289289 cnt . increment ( 3 ) ;
290290 cnt2 . increment ( 7 ) ;
291- await commitAndAssert ( doc , ( ) => state ) ;
291+ commitAndAssert ( doc , ( ) => state ) ;
292292
293293 cnt . decrement ( 1 ) ;
294294 cnt2 . decrement ( 2 ) ;
295- await commitAndAssert ( doc , ( ) => state ) ;
295+ commitAndAssert ( doc , ( ) => state ) ;
296296
297297 unsub ( ) ;
298298 } ) ;
@@ -311,11 +311,11 @@ describe("applyEventBatchToState (inline)", () => {
311311 const t1 = l . insertContainer ( 1 , new LoroText ( ) ) ;
312312 t0 . update ( "A" ) ;
313313 t1 . update ( "B" ) ;
314- await commitAndAssert ( doc , ( ) => state ) ;
314+ commitAndAssert ( doc , ( ) => state ) ;
315315
316316 t0 . update ( "AA" ) ;
317317 t1 . update ( "BB" ) ;
318- await commitAndAssert ( doc , ( ) => state ) ;
318+ commitAndAssert ( doc , ( ) => state ) ;
319319
320320 unsub ( ) ;
321321 } ) ;
@@ -332,19 +332,19 @@ describe("applyEventBatchToState (inline)", () => {
332332 const t = doc . getText ( "t" ) ;
333333 t . insert ( 0 , "Hello" ) ;
334334 t . splice ( 5 , 0 , " World" ) ;
335- await commitAndAssert ( doc , ( ) => state ) ;
335+ commitAndAssert ( doc , ( ) => state ) ;
336336
337337 t . delete ( 0 , 1 ) ; // remove 'H'
338- await commitAndAssert ( doc , ( ) => state ) ;
338+ commitAndAssert ( doc , ( ) => state ) ;
339339
340340 t . applyDelta ( [ { retain : 0 } , { insert : "Start: " } ] ) ;
341- await commitAndAssert ( doc , ( ) => state ) ;
341+ commitAndAssert ( doc , ( ) => state ) ;
342342
343343 // Mark/unmark shouldn't change string content
344344 doc . configTextStyle ( { bold : { expand : "after" } } ) ;
345345 t . mark ( { start : 0 , end : 3 } , "bold" , true ) ;
346346 t . unmark ( { start : 0 , end : 3 } , "bold" ) ;
347- await commitAndAssert ( doc , ( ) => state ) ;
347+ commitAndAssert ( doc , ( ) => state ) ;
348348
349349 unsub ( ) ;
350350 } ) ;
@@ -386,7 +386,7 @@ describe("applyEventBatchToState (inline)", () => {
386386
387387 const m = doc . getMap ( "m" ) ;
388388 m . set ( "k" , 1 ) ;
389- await commitAndAssert ( doc , ( ) => state ) ;
389+ commitAndAssert ( doc , ( ) => state ) ;
390390
391391 // Setting the same value should not emit changes; state should remain in sync
392392 m . set ( "k" , 1 ) ;
@@ -410,7 +410,7 @@ describe("applyEventBatchToState (inline)", () => {
410410 m . setContainer ( "k" , txt ) ;
411411 // Replace with primitive before commit
412412 m . set ( "k" , "B" ) ;
413- await commitAndAssert ( doc , ( ) => state ) ;
413+ commitAndAssert ( doc , ( ) => state ) ;
414414
415415 unsub ( ) ;
416416 } ) ;
@@ -427,7 +427,7 @@ describe("applyEventBatchToState (inline)", () => {
427427 const txt = new LoroText ( ) ;
428428 txt . update ( "C" ) ;
429429 m . setContainer ( "k" , txt ) ;
430- await commitAndAssert ( doc , ( ) => state ) ;
430+ commitAndAssert ( doc , ( ) => state ) ;
431431
432432 unsub ( ) ;
433433 } ) ;
@@ -444,7 +444,7 @@ describe("applyEventBatchToState (inline)", () => {
444444 t . update ( "x" ) ;
445445 l . insertContainer ( 0 , t ) ;
446446 l . delete ( 0 , 1 ) ;
447- await commitAndAssert ( doc , ( ) => state ) ;
447+ commitAndAssert ( doc , ( ) => state ) ;
448448
449449 unsub ( ) ;
450450 } ) ;
0 commit comments