redux
This commit is contained in:
1749
backend/package-lock.json
generated
1749
backend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -16,6 +16,8 @@
|
|||||||
"express": "^4.21.2"
|
"express": "^4.21.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"nodemon": "^3.1.9"
|
"nodemon": "^3.1.9",
|
||||||
|
"supertest": "^7.2.2",
|
||||||
|
"vitest": "^4.0.18"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ describe('POST /v1/notes/cluster', () => {
|
|||||||
|
|
||||||
expect(res.status).toBe(500);
|
expect(res.status).toBe(500);
|
||||||
expect(res.body).toHaveProperty('error');
|
expect(res.body).toHaveProperty('error');
|
||||||
expect(res.body.error).toBe('Clustering failed');
|
expect(res.body.error).toMatch(/^Clustering failed/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return 500 when the data file cannot be read', async () => {
|
it('should return 500 when the data file cannot be read', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user