@fluidframework/test-runtime-utils 2.74.0 → 2.80.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/mocks.ts CHANGED
@@ -115,7 +115,7 @@ export class MockDeltaConnection implements IDeltaConnection {
115
115
  this.handler?.processMessages?.(messageCollection);
116
116
  }
117
117
 
118
- public reSubmit(content: any, localOpMetadata: unknown, squash?: boolean): void {
118
+ public reSubmit(content: any, localOpMetadata: unknown, squash: boolean): void {
119
119
  this.handler?.reSubmit(content, localOpMetadata, squash);
120
120
  }
121
121
 
@@ -426,7 +426,11 @@ export class MockContainerRuntime extends TypedEventEmitter<IContainerRuntimeEve
426
426
  if (pendingMessage.content.type === "idAllocation") {
427
427
  this.submit(pendingMessage.content, pendingMessage.localOpMetadata);
428
428
  } else {
429
- this.dataStoreRuntime.reSubmit(pendingMessage.content, pendingMessage.localOpMetadata);
429
+ this.dataStoreRuntime.reSubmit(
430
+ pendingMessage.content,
431
+ pendingMessage.localOpMetadata,
432
+ false,
433
+ );
430
434
  }
431
435
  });
432
436
  }
@@ -851,6 +855,7 @@ const attachStatesToComparableNumbers = {
851
855
  /**
852
856
  * Mock implementation of IRuntime for testing that does nothing
853
857
  * @legacy @beta
858
+ * @sealed
854
859
  */
855
860
  export class MockFluidDataStoreRuntime
856
861
  extends EventEmitter
@@ -1191,7 +1196,7 @@ export class MockFluidDataStoreRuntime
1191
1196
  return null as any as IResponse;
1192
1197
  }
1193
1198
 
1194
- public reSubmit(content: any, localOpMetadata: unknown, squash?: boolean): void {
1199
+ public reSubmit(content: any, localOpMetadata: unknown, squash: boolean): void {
1195
1200
  this.deltaConnections.forEach((dc) => {
1196
1201
  dc.reSubmit(content, localOpMetadata, squash);
1197
1202
  });
@@ -3,8 +3,9 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { UsageError } from "@fluidframework/telemetry-utils/internal";
7
6
  import { assert } from "@fluidframework/core-utils/internal";
7
+ import { UsageError } from "@fluidframework/telemetry-utils/internal";
8
+
8
9
  import { shortCodeMap } from "./assertionShortCodesMap.js";
9
10
 
10
11
  /**