feat: add epoch event stream to aggregate id

This commit is contained in:
2025-08-12 05:07:16 +02:00
parent d3b08b0caa
commit 393afd58d6
16 changed files with 34 additions and 72 deletions

View File

@@ -1,7 +1,6 @@
import { assertEquals, assertObjectMatch } from "@std/assert";
import { it } from "@std/testing/bdd";
import { makeId } from "../../libraries/nanoid.ts";
import type { Events } from "../mocks/events.ts";
import { describe } from "../utilities/describe.ts";
@@ -9,7 +8,7 @@ export default describe<Events>("projector.once", (getEventStore) => {
it("should handle successfull projection", async () => {
const { store, projector } = await getEventStore();
const stream = makeId();
const stream = crypto.randomUUID();
const event = store.event({
stream,
type: "user:created",
@@ -51,7 +50,7 @@ export default describe<Events>("projector.once", (getEventStore) => {
it("should handle failed projection", async () => {
const { store, projector } = await getEventStore();
const stream = makeId();
const stream = crypto.randomUUID();
const event = store.event({
stream,
type: "user:created",