@rotorsoft/act-tck 1.27.20 → 1.27.21

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 CHANGED
@@ -3241,9 +3241,9 @@ var runStoreTck = (options) => {
3241
3241
  const stats = await store.query_stats([sA, sB]);
3242
3242
  expect8(stats.size).toBe(2);
3243
3243
  expect8(stats.get(sA)?.head.name).toBe("Incremented");
3244
- expect8((stats.get(sA)?.head.data).amount).toBe(2);
3244
+ expect8(stats.get(sA).head.data.amount).toBe(2);
3245
3245
  expect8(stats.get(sB)?.head.name).toBe("Decremented");
3246
- expect8((stats.get(sB)?.head.data).amount).toBe(5);
3246
+ expect8(stats.get(sB).head.data.amount).toBe(5);
3247
3247
  expect8(stats.has(sUnasked)).toBe(false);
3248
3248
  const empty = await store.query_stats([]);
3249
3249
  expect8(empty.size).toBe(0);
@@ -3273,9 +3273,9 @@ var runStoreTck = (options) => {
3273
3273
  });
3274
3274
  const r = stats.get(s);
3275
3275
  expect8(r?.head.name).toBe("Incremented");
3276
- expect8((r?.head.data).amount).toBe(3);
3276
+ expect8(r.head.data.amount).toBe(3);
3277
3277
  expect8(r?.tail?.name).toBe("Incremented");
3278
- expect8((r?.tail?.data).amount).toBe(1);
3278
+ expect8(r.tail.data.amount).toBe(1);
3279
3279
  });
3280
3280
  it7("count + names \u2014 full aggregates including framework markers", async () => {
3281
3281
  const tag = uid();
@@ -3318,12 +3318,12 @@ var runStoreTck = (options) => {
3318
3318
  );
3319
3319
  const all = await store.query_stats([s]);
3320
3320
  expect8(all.get(s)?.head.name).toBe("Incremented");
3321
- expect8((all.get(s)?.head.data).amount).toBe(3);
3321
+ expect8(all.get(s).head.data.amount).toBe(3);
3322
3322
  const excl = await store.query_stats([s], {
3323
3323
  exclude: ["Incremented"]
3324
3324
  });
3325
3325
  expect8(excl.get(s)?.head.name).toBe("Decremented");
3326
- expect8((excl.get(s)?.head.data).amount).toBe(2);
3326
+ expect8(excl.get(s).head.data.amount).toBe(2);
3327
3327
  const wipe = await store.query_stats([sAllOut], {
3328
3328
  exclude: ["Incremented", "Decremented", "Reset"]
3329
3329
  });
@@ -3471,7 +3471,7 @@ var runStoreTck = (options) => {
3471
3471
  expect8(n.get(s)?.tail).toBeUndefined();
3472
3472
  const t = await store.query_stats([s], { tail: true });
3473
3473
  expect8(t.get(s)?.tail?.name).toBe("Incremented");
3474
- expect8((t.get(s)?.tail?.data).amount).toBe(1);
3474
+ expect8(t.get(s).tail.data.amount).toBe(1);
3475
3475
  expect8(t.get(s)?.count).toBeUndefined();
3476
3476
  expect8(t.get(s)?.names).toBeUndefined();
3477
3477
  });