Fixed category get route conception

This commit is contained in:
Florian Sylvain
2023-02-01 09:57:07 +01:00
parent 0cf7ac2670
commit 3dbc05994a
2 changed files with 10 additions and 9 deletions
+1 -4
View File
@@ -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 () => {