mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-09 15:11:29 -07:00
19 lines
501 B
TypeScript
19 lines
501 B
TypeScript
import { exports } from 'cloudflare:workers'
|
|
import { describe, expect, test } from 'vitest'
|
|
|
|
import '../../clubs.app'
|
|
|
|
const ORIGIN = 'https://clubs.rec.djdevin.net'
|
|
|
|
describe('clubs endpoints', () => {
|
|
test('GET /club/home/me returns 404', async () => {
|
|
const res = await exports.default.fetch(`${ORIGIN}/club/home/me`)
|
|
expect(res.status).toBe(404)
|
|
})
|
|
|
|
test('unknown routes 404', async () => {
|
|
const res = await exports.default.fetch(`${ORIGIN}/nope`)
|
|
expect(res.status).toBe(404)
|
|
})
|
|
})
|