Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed Mar 4, 2024
1 parent 64a52dc commit 03957f4
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/schema/tests/generator/prisma-generator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('Prisma generator test', () => {
}
`);

await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -90,7 +90,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -128,7 +128,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -162,7 +162,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -194,7 +194,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -230,7 +230,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -270,7 +270,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -321,7 +321,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -357,7 +357,7 @@ describe('Prisma generator test', () => {
}
`);
const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand All @@ -380,7 +380,7 @@ describe('Prisma generator test', () => {
const model = await loadDocument(path.join(__dirname, './zmodel/schema.zmodel'));

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -430,7 +430,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -461,7 +461,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down Expand Up @@ -496,7 +496,7 @@ describe('Prisma generator test', () => {
`);

const { name } = tmp.fileSync({ postfix: '.prisma' });
await new PrismaSchemaGenerator().generate(model, {
await new PrismaSchemaGenerator(model).generate({
name: 'Prisma',
provider: '@core/prisma',
schemaPath: 'schema.zmodel',
Expand Down

0 comments on commit 03957f4

Please sign in to comment.