mirror of
https://github.com/Floriansylvain/SnippetsManager.git
synced 2026-08-20 03:43:35 +02:00
Fixed category get route conception
This commit is contained in:
@@ -130,12 +130,9 @@ describe('GET /v1/category', () => {
|
||||
.get('/v1/category')
|
||||
.set('Content-Type', 'application/json')
|
||||
.set('Cookie', jwtCookie as string)
|
||||
.send(JSON.stringify({
|
||||
name: 'VueJS Composition API'
|
||||
}))
|
||||
|
||||
expect(res.status).toEqual(200)
|
||||
expect(res.body).toHaveProperty('category')
|
||||
expect(res.body).toHaveProperty('categories')
|
||||
})
|
||||
|
||||
it('returns status code 400 and error message', async () => {
|
||||
|
||||
Reference in New Issue
Block a user