@rotorsoft/act-tck 1.36.13 → 1.36.15

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
@@ -1502,6 +1502,27 @@ var runStoreTck = (options) => {
1502
1502
  });
1503
1503
  expect8(out_of_window.length).toBe(0);
1504
1504
  });
1505
+ it7("created bounds exclude the event they are pinned to", async () => {
1506
+ const s = `q-ts-self-${uid()}`;
1507
+ const committed = await store.commit(
1508
+ s,
1509
+ [inc(1)],
1510
+ make_meta({ stream: s })
1511
+ );
1512
+ const own = committed[0].created;
1513
+ const after_own = await collect(store, {
1514
+ stream: s,
1515
+ stream_exact: true,
1516
+ created_after: own
1517
+ });
1518
+ expect8(after_own).toEqual([]);
1519
+ const before_own = await collect(store, {
1520
+ stream: s,
1521
+ stream_exact: true,
1522
+ created_before: own
1523
+ });
1524
+ expect8(before_own).toEqual([]);
1525
+ });
1505
1526
  it7("backward traversal short-circuits at `after` id boundary", async () => {
1506
1527
  const s = `q-back-after-${uid()}`;
1507
1528
  const committed = await store.commit(