Skip to content

Commit 7971cbb

Browse files
committed
fix(tests): update setStatus invalid status error message assertion
AJV body validator now rejects invalid status values before the handler runs, so the error message is from AJV ('must be equal to one of the allowed values') not from the handler.
1 parent a330be9 commit 7971cbb

File tree

1 file changed

+1
-1
lines changed
  • apps/meteor/tests/end-to-end/api

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5149,7 +5149,7 @@ describe('[Users]', () => {
51495149
.expect((res) => {
51505150
expect(res.body).to.have.property('success', false);
51515151
expect(res.body.errorType).to.be.equal('invalid-params');
5152-
expect(res.body.error).to.be.equal('Valid status types include online, away, offline, and busy.');
5152+
expect(res.body.error).to.include('must be equal to one of the allowed values');
51535153
})
51545154
.end(done);
51555155
});

0 commit comments

Comments
 (0)