feat: add epoch event stream to aggregate id
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { assertEquals, assertObjectMatch, assertRejects } from "@std/assert";
|
||||
import { it } from "@std/testing/bdd";
|
||||
import { nanoid } from "nanoid";
|
||||
|
||||
import { EventValidationError } from "../../mod.ts";
|
||||
import type { Events } from "../mocks/events.ts";
|
||||
@@ -10,7 +9,7 @@ import { describe } from "../utilities/describe.ts";
|
||||
export default describe<Events>(".addSequence", (getEventStore) => {
|
||||
it("should insert 'user:created', 'user:name:given-set', and 'user:email-set' in a sequence of events", async () => {
|
||||
const { store } = await getEventStore();
|
||||
const stream = nanoid();
|
||||
const stream = crypto.randomUUID();
|
||||
|
||||
const events = [
|
||||
store.event({
|
||||
@@ -63,7 +62,7 @@ export default describe<Events>(".addSequence", (getEventStore) => {
|
||||
|
||||
it("should not commit any events when insert fails", async () => {
|
||||
const { store } = await getEventStore();
|
||||
const stream = nanoid();
|
||||
const stream = crypto.randomUUID();
|
||||
|
||||
await assertRejects(
|
||||
async () =>
|
||||
|
||||
Reference in New Issue
Block a user