feat: add epoch event stream to aggregate id
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { assertEquals, assertNotEquals, assertObjectMatch } from "@std/assert";
|
||||
import { it } from "@std/testing/bdd";
|
||||
import { nanoid } from "nanoid";
|
||||
|
||||
import type { Events } from "../mocks/events.ts";
|
||||
import { userReducer } from "../mocks/user-reducer.ts";
|
||||
@@ -9,7 +8,7 @@ import { describe } from "../utilities/describe.ts";
|
||||
export default describe<Events>(".createSnapshot", (getEventStore) => {
|
||||
it("should create a new snapshot", async () => {
|
||||
const { store } = await getEventStore();
|
||||
const stream = nanoid();
|
||||
const stream = crypto.randomUUID();
|
||||
|
||||
await store.pushEvent(
|
||||
store.event({
|
||||
|
||||
Reference in New Issue
Block a user