good forst commit
This commit is contained in:
@@ -22,8 +22,14 @@ describe('PrismaService', () => {
|
||||
});
|
||||
|
||||
it('creates and retrieves a Group, then cleans up', async () => {
|
||||
const tenant = await prisma.tenant.upsert({
|
||||
where: { slug: 'default' },
|
||||
update: {},
|
||||
create: { id: 'tnt_test', slug: 'default', name: 'Default Tenant' },
|
||||
});
|
||||
const group = await prisma.group.create({
|
||||
data: {
|
||||
tenantId: tenant.id,
|
||||
platform: 'whatsapp',
|
||||
platformId: `test-group-${Date.now()}@g.us`,
|
||||
name: 'Test Group',
|
||||
|
||||
Reference in New Issue
Block a user