@@ -129,20 +129,20 @@ describe('TeamDashboardComponent', () => {
129129 dialogRefSpy . afterClosed . and . returnValue ( of ( null ) ) ;
130130 mockDialog . open . and . returnValue ( dialogRefSpy ) ;
131131
132- component . newTeam ( ) ;
132+ component . createTeam ( ) ;
133133
134134 expect ( mockDialog . open ) . toHaveBeenCalledWith ( CreateTeamDialogComponent , {
135135 data : { team : { } }
136136 } ) ;
137137 } ) ;
138138
139139 it ( 'should refresh teams after creating new team' , ( ) => {
140- const newTeam = { id : '4' , name : 'New Team' , description : 'New team description' } ;
140+ const createTeam = { id : '4' , name : 'New Team' , description : 'New team description' } ;
141141 const dialogRefSpy = jasmine . createSpyObj ( 'MatDialogRef' , [ 'afterClosed' ] ) ;
142- dialogRefSpy . afterClosed . and . returnValue ( of ( newTeam ) ) ;
142+ dialogRefSpy . afterClosed . and . returnValue ( of ( createTeam ) ) ;
143143 mockDialog . open . and . returnValue ( dialogRefSpy ) ;
144144
145- component . newTeam ( ) ;
145+ component . createTeam ( ) ;
146146
147147 expect ( mockTeamsService . getTeams ) . toHaveBeenCalled ( ) ;
148148 } ) ;
@@ -152,7 +152,7 @@ describe('TeamDashboardComponent', () => {
152152 dialogRefSpy . afterClosed . and . returnValue ( of ( null ) ) ;
153153 mockDialog . open . and . returnValue ( dialogRefSpy ) ;
154154
155- component . newTeam ( ) ;
155+ component . createTeam ( ) ;
156156
157157 expect ( mockTeamsService . getTeams ) . not . toHaveBeenCalled ( ) ;
158158 } ) ;
0 commit comments