@@ -58,45 +58,47 @@ describe('Team', function() { // Isolate tests that are based on a fixed team
58
58
59
59
let hasTestUser = members . reduce (
60
60
( found , member ) => member . login === testUser . USERNAME || found ,
61
- false ) ;
61
+ false
62
+ ) ;
62
63
63
64
expect ( hasTestUser ) . to . be . true ( ) ;
64
65
} ) ;
65
66
} ) ;
66
67
67
68
it ( 'should get team repos' , function ( ) {
68
- return team . getRepos ( )
69
- . then ( ( { data} ) => {
70
- const hasRepo = data . reduce (
71
- ( found , repo ) => repo . name === 'fixed-test-repo-1' || found ,
72
- false ) ;
73
-
74
- expect ( hasRepo ) . to . be . true ( ) ;
75
- } ) ;
69
+ return team . listRepos ( )
70
+ . then ( ( { data} ) => {
71
+ const hasRepo = data . reduce (
72
+ ( found , repo ) => repo . name === 'fixed-test-repo-1' || found ,
73
+ false
74
+ ) ;
75
+
76
+ expect ( hasRepo ) . to . be . true ( ) ;
77
+ } ) ;
76
78
} ) ;
77
79
78
80
it ( 'should get team' , function ( ) {
79
81
return team . getTeam ( )
80
- . then ( ( { data} ) => {
81
- expect ( data . name ) . to . equal ( 'Fixed Test Team 1' ) ;
82
- } ) ;
82
+ . then ( ( { data} ) => {
83
+ expect ( data . name ) . to . equal ( 'Fixed Test Team 1' ) ;
84
+ } ) ;
83
85
} ) ;
84
86
85
87
it ( 'should check if team manages repo' , function ( ) {
86
88
return team . isManagedRepo ( testUser . ORGANIZATION , 'fixed-test-repo-1' )
87
- . then ( ( result ) => {
88
- expect ( result ) . to . be . true ( ) ;
89
- } ) ;
89
+ . then ( ( result ) => {
90
+ expect ( result ) . to . be . true ( ) ;
91
+ } ) ;
90
92
} ) ;
91
93
} ) ;
92
94
93
95
describe ( 'Team' , function ( ) { // Isolate tests that need a new team per test
94
96
beforeEach ( function ( ) {
95
97
return createTestTeam ( )
96
- . then ( ( x ) => {
97
- team = x . team ;
98
- name = x . name ;
99
- } ) ;
98
+ . then ( ( x ) => {
99
+ team = x . team ;
100
+ name = x . name ;
101
+ } ) ;
100
102
} ) ;
101
103
102
104
// Test for Team deletion
@@ -108,9 +110,9 @@ describe('Team', function() { // Isolate tests that need a new team per test
108
110
it ( 'should update team' , function ( ) {
109
111
const newName = `${ name } -updated` ;
110
112
return team . editTeam ( { name : newName } )
111
- . then ( function ( { data} ) {
112
- expect ( data . name ) . to . equal ( newName ) ;
113
- } ) ;
113
+ . then ( function ( { data} ) {
114
+ expect ( data . name ) . to . equal ( newName ) ;
115
+ } ) ;
114
116
} ) ;
115
117
116
118
it ( 'should add membership for a given user' , function ( ) {
0 commit comments