add rooms

This commit is contained in:
Devin Zuczek
2026-06-14 18:59:35 -04:00
parent 767dd47bab
commit 768ca2a0a3
64 changed files with 87267 additions and 787 deletions
@@ -0,0 +1,20 @@
import { SELF } from 'cloudflare:test'
import { describe, expect, it } from 'vitest'
import '../../commerce.app'
const ORIGIN = 'https://commerce.rec.djdevin.net'
describe('commerce endpoints', () => {
it('GET / reports service status', async () => {
const res = await SELF.fetch(`${ORIGIN}/`)
expect(res.status).toBe(200)
expect(await res.json()).toEqual({ service: 'commerce', status: 'ok' })
})
it('GET /purchase/v1/hasspentmoney returns false', async () => {
const res = await SELF.fetch(`${ORIGIN}/purchase/v1/hasspentmoney`)
expect(res.status).toBe(200)
expect(await res.json()).toBe(false)
})
})