Skip to content

Commit eefb3ca

Browse files
committed
fix tests
1 parent fd5f968 commit eefb3ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/__tests__/routes.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ describe('API Routes', () => {
564564
.get('/v1/static/reports/data.json')
565565
.expect(500);
566566

567-
expect(res.body).toHaveProperty('error', 'Failed to retrieve file');
567+
expect(res.body).toHaveProperty('error', 'Server failed to respond');
568568
expect(res.body).toHaveProperty('details');
569569
});
570570

@@ -576,7 +576,7 @@ describe('API Routes', () => {
576576
.get('/v1/static/reports/data.json')
577577
.expect(500);
578578

579-
expect(res.body).toHaveProperty('error', 'Failed to retrieve file');
579+
expect(res.body).toHaveProperty('error', 'Server failed to respond');
580580
});
581581

582582
it('should handle stream errors during file read', async () => {
@@ -852,7 +852,7 @@ describe('API Routes', () => {
852852
.get('/v1/static/reports/data.json')
853853
.expect(500);
854854

855-
expect(res.body).toHaveProperty('error', 'Failed to retrieve file');
855+
expect(res.body).toHaveProperty('error', 'Server failed to respond');
856856
expect(res.body).toHaveProperty('details');
857857
});
858858

@@ -864,7 +864,7 @@ describe('API Routes', () => {
864864
.get('/v1/static/reports/data.json')
865865
.expect(500);
866866

867-
expect(res.body).toHaveProperty('error', 'Failed to retrieve file');
867+
expect(res.body).toHaveProperty('error', 'Server failed to respond');
868868
});
869869

870870
it('should handle stream errors during file read', async () => {

0 commit comments

Comments
 (0)