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