openpencil/tests/engine/collab/room-id.test.ts
2026-09-16 17:57:35 +03:00

9 lines
260 B
TypeScript

import { expect, test } from 'bun:test'
import { generateRoomId } from '@/app/collab/awareness'
test('new collaboration invitation credentials use 32 base36 characters', () => {
const roomId = generateRoomId()
expect(roomId).toMatch(/^[a-z0-9]{32}$/)
})