@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/CHANGELOG.md +12 -0
- package/api-report/test-runtime-utils.legacy.beta.api.md +3 -3
- package/dist/assertionShortCodesMap.d.ts +4 -6
- package/dist/assertionShortCodesMap.d.ts.map +1 -1
- package/dist/assertionShortCodesMap.js +5 -7
- package/dist/assertionShortCodesMap.js.map +1 -1
- package/dist/mocks.d.ts +3 -2
- package/dist/mocks.d.ts.map +1 -1
- package/dist/mocks.js +2 -1
- package/dist/mocks.js.map +1 -1
- package/dist/validateAssertionError.d.ts.map +1 -1
- package/dist/validateAssertionError.js +4 -4
- package/dist/validateAssertionError.js.map +1 -1
- package/lib/assertionShortCodesMap.d.ts +4 -6
- package/lib/assertionShortCodesMap.d.ts.map +1 -1
- package/lib/assertionShortCodesMap.js +5 -7
- package/lib/assertionShortCodesMap.js.map +1 -1
- package/lib/mocks.d.ts +3 -2
- package/lib/mocks.d.ts.map +1 -1
- package/lib/mocks.js +2 -1
- package/lib/mocks.js.map +1 -1
- package/lib/validateAssertionError.d.ts.map +1 -1
- package/lib/validateAssertionError.js +1 -1
- package/lib/validateAssertionError.js.map +1 -1
- package/package.json +24 -24
- package/src/assertionShortCodesMap.ts +5 -7
- package/src/mocks.ts +8 -3
- package/src/validateAssertionError.ts +2 -1
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
|
|
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(
|
|
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
|
|
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
|
/**
|