Skip to content

Commit

Permalink
updated cors
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jonathan committed May 3, 2024
1 parent ddc6ed6 commit 5eac42d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/Aggregate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},
Expand Down Expand Up @@ -193,7 +193,7 @@ describe('Aggregate', () => {
},
})

const a1 = createAggregate({
const a1 = makeAggregate({
id,
createdAt,
name,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"include": [
"typings/**/*.d.ts",
"src/**/*.ts",
"src/**/*.js",
"vite.config*.ts",
"__tests__/**/*",
"__benchmarks__/**/*"
Expand Down

0 comments on commit 5eac42d

Please sign in to comment.