fix(tests): update app.test.js to expect test environment
This commit is contained in:
@@ -25,12 +25,12 @@ describe('Backend API Tests', () => {
|
||||
expect(timestamp.getTime()).not.toBeNaN();
|
||||
});
|
||||
|
||||
it('should return development environment in test mode', async () => {
|
||||
it('should return test environment in test mode', async () => {
|
||||
const response = await request(app)
|
||||
.get('/api/health')
|
||||
.expect(200);
|
||||
|
||||
expect(response.body.environment).toBe('development');
|
||||
expect(response.body.environment).toBe('test');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user