eletrotupi / tcc/ api/tests/moods/notify.test.ts074b881232764e3f20a6308cce0c2027907a0fda
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
})