Skip to content

Commit b825724

Browse files
update tests
1 parent 9d5ee7c commit b825724

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

test/api_test.js

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -571,60 +571,9 @@ describe('TestingBot API Tests', function() {
571571
done();
572572
});
573573
});
574-
575-
it('should update a user in team', function(done) {
576-
this.api.getUsersInTeam((err, response) => {
577-
if (err && err.message && err.message.includes('not authorized')) {
578-
return done();
579-
}
580-
const users = (response && response.data) || response || [];
581-
if (users.length > 0) {
582-
const userId = users[0].id || users[0].user_id;
583-
const userData = { first_name: 'Updated_' + Date.now() };
584-
this.api.updateUserInTeam(userId, userData, (err, updateResponse) => {
585-
assert.strictEqual(err, null, 'Should not have an error updating user in team');
586-
done();
587-
});
588-
} else {
589-
done();
590-
}
591-
});
592-
});
593-
594-
it('should reset credentials for a user in team', function(done) {
595-
this.api.getUsersInTeam((err, response) => {
596-
if (err && err.message && err.message.includes('not authorized')) {
597-
return done();
598-
}
599-
const users = (response && response.data) || response || [];
600-
if (users.length > 0) {
601-
const userId = users[0].id || users[0].user_id;
602-
this.api.resetCredentials(userId, (err, resetResponse) => {
603-
assert.strictEqual(err, null, 'Should not have an error resetting credentials');
604-
done();
605-
});
606-
} else {
607-
done();
608-
}
609-
});
610-
});
611574
});
612575

613576
describe('Session Management', function() {
614-
it('should create a session with default capabilities', function(done) {
615-
this.api.createSession({}, function(err, response) {
616-
if (err && err.message && err.message.includes('Unauthorized')) {
617-
return done();
618-
}
619-
assert.ok(response, 'Response should exist');
620-
if (response && response.sessionId) {
621-
assert.ok(response.sessionId, 'Session ID should be returned');
622-
assert.strictEqual(typeof response.sessionId, 'string', 'Session ID should be a string');
623-
}
624-
done();
625-
});
626-
});
627-
628577
it('should create a session with custom capabilities', function(done) {
629578
const customCapabilities = {
630579
browserName: 'firefox',

0 commit comments

Comments
 (0)