Skip to content

Commit

Permalink
update prisma sample & snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
unclejustin committed Nov 15, 2023
1 parent aba2fbb commit 8743766
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/__tests__/__snapshots__/createMethods.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export function fakeUserComplete() {
enum: faker.helpers.arrayElement([Enum.A, Enum.B, Enum.C] as const),
enumWithDefault: Enum.A,
nullableEnum: null,
enums: [Enum.A],
};
}
export function fakeUser2Complete() {
Expand Down Expand Up @@ -175,6 +176,7 @@ export function fakeUserComplete() {
enum: faker.helpers.arrayElement([Enum.A, Enum.B, Enum.C] as const),
enumWithDefault: Enum.A,
nullableEnum: undefined,
enums: [Enum.A],
};
}
export function fakeUser2Complete() {
Expand Down Expand Up @@ -274,6 +276,7 @@ export function fakeUserComplete() {
enum: faker.helpers.arrayElement([Enum.A, Enum.B, Enum.C] as const),
enumWithDefault: Enum.A,
nullableEnum: undefined,
enums: [Enum.A],
};
}
export function fakeUser2Complete() {
Expand Down Expand Up @@ -373,6 +376,7 @@ export function fakeUserComplete() {
enum: faker.helpers.arrayElement([Enum.A, Enum.B, Enum.C] as const),
enumWithDefault: Enum.A,
nullableEnum: undefined,
enums: [Enum.A],
};
}
export function fakeUser2Complete() {
Expand Down Expand Up @@ -472,6 +476,7 @@ export function fakeUserComplete() {
enum: faker.helpers.arrayElement([Enum.A, Enum.B, Enum.C] as const),
enumWithDefault: Enum.A,
nullableEnum: undefined,
enums: [Enum.A],
};
}
export function fakeUser2Complete() {
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/sample.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ model User {
nullableEnum Enum?
relation UserRelation? @relation(name: "UserRelationToUser1")
relation2 UserRelation? @relation(name: "UserRelationToUser2")
enums Enum[] @default([A])
}

model User2 {
Expand Down

0 comments on commit 8743766

Please sign in to comment.