fix the dang integration tests
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 24m23s
All checks were successful
Deploy to Test Environment / deploy-to-test (push) Successful in 24m23s
This commit is contained in:
@@ -74,10 +74,7 @@ describe('Recipe API Routes Integration Tests', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// Placeholder for future tests
|
||||
// Skipping this test as the POST /api/recipes endpoint for creation does not appear to be implemented.
|
||||
// The test currently fails with a 404 Not Found.
|
||||
it.skip('should allow an authenticated user to create a new recipe', async () => {
|
||||
it('should allow an authenticated user to create a new recipe', async () => {
|
||||
const newRecipeData = {
|
||||
name: 'My New Awesome Recipe',
|
||||
instructions: '1. Be awesome. 2. Make recipe.',
|
||||
@@ -85,7 +82,7 @@ describe('Recipe API Routes Integration Tests', () => {
|
||||
};
|
||||
|
||||
const response = await request
|
||||
.post('/api/recipes') // This endpoint does not exist, causing a 404.
|
||||
.post('/api/users/recipes')
|
||||
.set('Authorization', `Bearer ${authToken}`)
|
||||
.send(newRecipeData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user