Skip to content

Commit

Permalink
chore(prisma): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Feb 29, 2024
1 parent afe4804 commit ec32320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/prisma/__tests__/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import { createBot, createMessage } from '@grammyjs/storage-utils';
import prisma from './helpers/prisma';

beforeEach(async () => {
await prisma.session.deleteMany({});
await prisma.pizzaSession.deleteMany({});
});

describe('Delete test', () => {
test('A not yet stored record should be nullable without throwing', async () => {
test('An not yet stored record should be nullable without throwing', async () => {
const bot = createBot();

bot.use(
session({
initial() {
return { pizzaCount: 0 };
},
storage: new PrismaAdapter(prisma.session),
storage: new PrismaAdapter(prisma.pizzaSession),
})
);

Expand Down

0 comments on commit ec32320

Please sign in to comment.