@rotorsoft/act-tck 1.27.28 → 1.27.30

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
@@ -4215,6 +4215,25 @@ var runStoreTck = (options) => {
4215
4215
  expect8(seen[0].pii).toEqual({ email: "u@example.com", name: "Ursula" });
4216
4216
  expect8(seen[0].data).toEqual({ amount: 1 });
4217
4217
  });
4218
+ it7("revives a Date in a pii field to a Date, like data (#1365)", async () => {
4219
+ const s = `pii-date-${uid()}`;
4220
+ const dob = /* @__PURE__ */ new Date("2000-03-04T05:06:07.000Z");
4221
+ await store.commit(
4222
+ s,
4223
+ [{ name: "Incremented", data: { amount: 1 }, pii: { dob } }],
4224
+ make_meta({ stream: s })
4225
+ );
4226
+ const seen = [];
4227
+ await store.query((e) => seen.push(e), {
4228
+ stream: s,
4229
+ stream_exact: true
4230
+ });
4231
+ expect8(seen).toHaveLength(1);
4232
+ expect8(seen[0].pii.dob).toBeInstanceOf(Date);
4233
+ expect8(seen[0].pii.dob.getTime()).toBe(
4234
+ dob.getTime()
4235
+ );
4236
+ });
4218
4237
  it7("query_stats head/tail never carry pii \u2014 introspection surface is pii-safe (#1294)", async () => {
4219
4238
  const s = `pii-stats-${uid()}`;
4220
4239
  await store.commit(