The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/tests/end-to-end/api/17-custom-user-status.js

24 lines
692 B

import { expect } from 'chai';
import { getCredentials, api, request, credentials } from '../../data/api-data.js';
describe('[CustomUserStatus]', function() {
this.retries(0);
before((done) => getCredentials(done));
describe('[/custom-user-status.list]', () => {
it('should return custom user status', (done) => {
request.get(api('custom-user-status.list'))
.set(credentials)
.expect(200)
.expect((res) => {
expect(res.body).to.have.property('statuses').and.to.be.an('array');
expect(res.body).to.have.property('total');
expect(res.body).to.have.property('offset');
expect(res.body).to.have.property('count');
})
.end(done);
});
});
});