@@ -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