Skip to content

Commit 6a8fc6b

Browse files
committed
update test
1 parent 8f6650a commit 6a8fc6b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/app.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,37 @@ describe('Express App Tests', () => {
1515
});
1616

1717
// Paper classification endpoint test
18-
describe('GET /classify-paper', () => {
18+
describe('POST /paper-score-comments', () => {
1919
it('should return paper classification result', async () => {
20-
const response = await request(app).get('/classify-paper');
21-
expect(response.status).toBe(200);
20+
const response = await request(app).post('/paper-score-comments');
21+
expect(response.status).toBe(400);
2222
expect(response.body).toBeDefined();
2323
});
2424
});
2525

2626
// Paper scoring endpoint test
27-
describe('GET /score-paper', () => {
27+
describe('POST /parse-paper', () => {
2828
it('should return paper score result', async () => {
29-
const response = await request(app).get('/score-paper');
30-
expect(response.status).toBe(200);
29+
const response = await request(app).post('/parse-paper');
30+
expect(response.status).toBe(400);
3131
expect(response.body).toBeDefined();
3232
});
3333
});
3434

3535
// Paper weakness analysis endpoint test
36-
describe('GET /paper-weak', () => {
36+
describe('POST /classify-paper', () => {
3737
it('should return paper weakness analysis', async () => {
38-
const response = await request(app).get('/paper-weak');
39-
expect(response.status).toBe(200);
38+
const response = await request(app).post('/classify-paper');
39+
expect(response.status).toBe(400);
4040
expect(response.body).toBeDefined();
4141
});
4242
});
4343

4444
// Review section analysis endpoint test
45-
describe('GET /review-in-which-section', () => {
45+
describe('POST /paper-score', () => {
4646
it('should return review section analysis', async () => {
47-
const response = await request(app).get('/review-in-which-section');
48-
expect(response.status).toBe(200);
47+
const response = await request(app).post('/paper-score');
48+
expect(response.status).toBe(400);
4949
expect(response.body).toBeDefined();
5050
});
5151
});

0 commit comments

Comments
 (0)