-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddc6ed6
commit 5eac42d
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,14 +130,14 @@ class UserAggregate extends Aggregate<User, UserTopics> { | |
} | ||
|
||
describe('Aggregate', () => { | ||
it('createAggregate', () => { | ||
it('makeAggregate', () => { | ||
const id = uuidv4() | ||
const createdAt = new Date() | ||
const name = 'daniel' | ||
const version = 1 | ||
const email = '[email protected]' | ||
|
||
const createAggregate = defineAggregate(UserAggregate, { | ||
const makeAggregate = defineAggregate(UserAggregate, { | ||
trace(entity: User) { | ||
expect(guard<User>(entity)).toBeTruthy() | ||
}, | ||
|
@@ -193,7 +193,7 @@ describe('Aggregate', () => { | |
}, | ||
}) | ||
|
||
const a1 = createAggregate({ | ||
const a1 = makeAggregate({ | ||
id, | ||
createdAt, | ||
name, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters