@dudousxd/nestjs-durable-testing 0.7.1 → 0.7.2
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/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -566,6 +566,14 @@ function runStateStoreContract(name, makeStore) {
|
|
|
566
566
|
expect2(r?.lockedBy).toBe("owner-2");
|
|
567
567
|
expect2(r?.wakeAt).toBe(123456);
|
|
568
568
|
expect2(r?.lockedUntil).toBe(222222);
|
|
569
|
+
await store.updateRun("r1", {
|
|
570
|
+
awaitingDecisionTaskId: "turn-7"
|
|
571
|
+
});
|
|
572
|
+
expect2((await store.getRun("r1"))?.awaitingDecisionTaskId).toBe("turn-7");
|
|
573
|
+
await store.updateRun("r1", {
|
|
574
|
+
awaitingDecisionTaskId: void 0
|
|
575
|
+
});
|
|
576
|
+
expect2((await store.getRun("r1"))?.awaitingDecisionTaskId).toBeUndefined();
|
|
569
577
|
});
|
|
570
578
|
t("upserts checkpoints, reads them by (runId, seq), and lists them ordered by seq", async () => {
|
|
571
579
|
await store.createRun(run());
|