Skip to content

Commit 8cf1d86

Browse files
ggazzoclaude
andcommitted
fix(tests): revert errorType for POST endpoints with body validators
POST endpoints using body validators return 'invalid-params' (not 'error-invalid-params'). Only GET endpoints with query validators use the 'error-' prefix. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 693c99d commit 8cf1d86

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • apps/meteor/tests/end-to-end/api

apps/meteor/tests/end-to-end/api/chat.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ describe('[Chat]', () => {
19221922
.expect(400)
19231923
.expect((res) => {
19241924
expect(res.body).to.have.property('success', false);
1925-
expect(res.body).to.have.property('errorType', 'error-invalid-params');
1925+
expect(res.body).to.have.property('errorType', 'invalid-params');
19261926
});
19271927
});
19281928

@@ -1938,7 +1938,7 @@ describe('[Chat]', () => {
19381938
.expect(400)
19391939
.expect((res) => {
19401940
expect(res.body).to.have.property('success', false);
1941-
expect(res.body).to.have.property('errorType', 'error-invalid-params');
1941+
expect(res.body).to.have.property('errorType', 'invalid-params');
19421942
});
19431943
});
19441944

@@ -1954,7 +1954,7 @@ describe('[Chat]', () => {
19541954
.expect(400)
19551955
.expect((res) => {
19561956
expect(res.body).to.have.property('success', false);
1957-
expect(res.body).to.have.property('errorType', 'error-invalid-params');
1957+
expect(res.body).to.have.property('errorType', 'invalid-params');
19581958
});
19591959
});
19601960

@@ -2241,7 +2241,7 @@ describe('[Chat]', () => {
22412241
.expect(400)
22422242
.expect((res) => {
22432243
expect(res.body).to.have.property('success', false);
2244-
expect(res.body).to.have.property('errorType', 'error-invalid-params');
2244+
expect(res.body).to.have.property('errorType', 'invalid-params');
22452245
});
22462246
});
22472247
it('should fail deleting a message if no room id is provided', async () => {
@@ -2255,7 +2255,7 @@ describe('[Chat]', () => {
22552255
.expect(400)
22562256
.expect((res) => {
22572257
expect(res.body).to.have.property('success', false);
2258-
expect(res.body).to.have.property('errorType', 'error-invalid-params');
2258+
expect(res.body).to.have.property('errorType', 'invalid-params');
22592259
});
22602260
});
22612261
it('should fail deleting a message if it is not in the provided room', async () => {

0 commit comments

Comments
 (0)