File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,8 @@ suite('Method Extraction', () => {
187
187
ignoreErrorHandling = true ;
188
188
assert . fail ( 'No error' , 'Error' , 'Extraction should fail with an error' , '' ) ;
189
189
}
190
+ return textEditor . document . save ( ) ;
191
+ } ) . then ( ( ) => {
190
192
assert . equal ( ch . output . length , 0 , 'Output channel is not empty' ) ;
191
193
assert . equal ( textDocument . lineAt ( 241 ) . text . trim ( ) . indexOf ( 'def newmethod' ) , 0 , 'New Method not created' ) ;
192
194
assert . equal ( textDocument . lineAt ( 239 ) . text . trim ( ) . startsWith ( 'self.newmethod' ) , true , 'New Method not being used' ) ;
Original file line number Diff line number Diff line change @@ -187,6 +187,8 @@ suite('Variable Extraction', () => {
187
187
ignoreErrorHandling = true ;
188
188
assert . fail ( 'No error' , 'Error' , 'Extraction should fail with an error' , '' ) ;
189
189
}
190
+ return textEditor . document . save ( ) ;
191
+ } ) . then ( ( ) => {
190
192
assert . equal ( ch . output . length , 0 , 'Output channel is not empty' ) ;
191
193
assert . equal ( textDocument . lineAt ( 234 ) . text . trim ( ) . indexOf ( 'newvariable' ) , 0 , 'New Variable not created' ) ;
192
194
assert . equal ( textDocument . lineAt ( 234 ) . text . trim ( ) . endsWith ( '= "STARTED"' ) , true , 'Started Text Assigned to variable' ) ;
You can’t perform that action at this time.
0 commit comments