eletrotupi / tcc/ api/tests/moods/notify.test.ts32925689aa843a1fcbe8cb39437fd37fa532cd4d
469 B | 15 lines Raw
1
import { describe, it, expect } from 'vitest'
2
import request from 'supertest'
3
import { createApp } from '@app/createApp'
4

5
const app = createApp()
6

7
// The unauthenticated demo broadcast was deleted once notifications became
8
// stored records; this guards against reintroducing it.
9
describe('POST /moods/notify', () => {
10
  it('is no longer routed', async () => {
11
    const res = await request(app).post('/moods/notify').send({})
12

13
    expect(res.status).toBe(404)
14
  })
15
})