Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
gohanko committed Sep 3, 2024
1 parent 9928a63 commit 3968214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/api/event.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ describe('DELETE /api/event/:eventId', () => {
})
})

describe('GET /api/event/:eventId/code', () => {
describe('GET /api/event/:eventId/getCode', () => {
it("Should not be able to get event code if event does not exist.", async () => {
const response = await request(expressApp)
.get('/api/event/20/code')
.get('/api/event/20/qrCode')
.set('Cookie', authCookie)
.send()

Expand All @@ -142,7 +142,7 @@ describe('GET /api/event/:eventId/code', () => {
expect(eventCreationResponse.status).toBe(201)

const response = await request(expressApp)
.get(`/api/event/${eventCreationResponse.body.data.id}/code`)
.get(`/api/event/${eventCreationResponse.body.data.id}/qrCode`)
.set('Cookie', authCookie)
.send()

Expand Down

0 comments on commit 3968214

Please sign in to comment.