Skip to content

Commit

Permalink
refactor: implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 13, 2024
1 parent e2e9bda commit 41a4dd8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/core/utils/src/dml/__tests__/entity-builder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4703,7 +4703,7 @@ describe("Entity builder", () => {
})
})

test("define relationship with self via hasMany", () => {
test("define entity with relationship to itself via hasMany", () => {
const user = model.define("user", {
id: model.number(),
username: model.text(),
Expand All @@ -4722,6 +4722,11 @@ describe("Entity builder", () => {
username: string
deleted_at: Date | null
}
children: {
id: number
username: string
deleted_at: Date | null
}[]
}>()

const metaData = MetadataStorage.getMetadataFromDecorator(User)
Expand Down Expand Up @@ -4831,6 +4836,11 @@ describe("Entity builder", () => {
username: string
deleted_at: Date | null
}
child: {
id: number
username: string
deleted_at: Date | null
}
}>()

const metaData = MetadataStorage.getMetadataFromDecorator(User)
Expand Down

0 comments on commit 41a4dd8

Please sign in to comment.