@@ -205,7 +205,8 @@ void main() {
205205 expect (configFile.existsSync (), true );
206206
207207 // ignore: leading_newlines_in_multiline_strings
208- expect (configFile.readAsStringSync (), '''## [very_good]
208+ expect (configFile.readAsStringSync (), '''
209+ \n ## [very_good]
209210## Completion config for "very_good"
210211[[ -f ${configDir .path }/very_good.zsh ]] && . ${configDir .path }/very_good.zsh || true
211212## [/very_good]
@@ -265,7 +266,8 @@ void main() {
265266 installation.writeToShellConfigFile ('very_good' );
266267
267268 // ignore: leading_newlines_in_multiline_strings
268- expect (rcFile.readAsStringSync (), '''## [Completion]
269+ expect (rcFile.readAsStringSync (), '''
270+ \n ## [Completion]
269271## Completion scripts setup. Remove the following line to uninstall
270272[[ -f ${configDir .path }/zsh-config.zsh ]] && . ${configDir .path }/zsh-config.zsh || true
271273## [/Completion]
@@ -372,7 +374,8 @@ void main() {
372374 // rc fle includes one reference to the global config
373375
374376 // ignore: leading_newlines_in_multiline_strings
375- expect (rcFile.readAsStringSync (), '''## [Completion]
377+ expect (rcFile.readAsStringSync (), '''
378+ \n ## [Completion]
376379## Completion scripts setup. Remove the following line to uninstall
377380[[ -f ${configDir .path }/zsh-config.zsh ]] && . ${configDir .path }/zsh-config.zsh || true
378381## [/Completion]
@@ -385,12 +388,13 @@ void main() {
385388 );
386389
387390 // ignore: leading_newlines_in_multiline_strings
388- expect (globalConfig.readAsStringSync (), '''## [very_good]
391+ expect (globalConfig.readAsStringSync (), '''
392+ \n ## [very_good]
389393## Completion config for "very_good"
390394[[ -f ${configDir .path }/very_good.zsh ]] && . ${configDir .path }/very_good.zsh || true
391395## [/very_good]
392396
393- ## [not_good]
397+ \n ## [not_good]
394398## Completion config for "not_good"
395399[[ -f ${configDir .path }/not_good.zsh ]] && . ${configDir .path }/not_good.zsh || true
396400## [/not_good]
@@ -423,7 +427,8 @@ void main() {
423427 ..install ('not_good' );
424428
425429 // ignore: leading_newlines_in_multiline_strings
426- expect (bashProfile.readAsStringSync (), '''## [Completion]
430+ expect (bashProfile.readAsStringSync (), '''
431+ \n ## [Completion]
427432## Completion scripts setup. Remove the following line to uninstall
428433[ -f ${configDir .path }/bash-config.bash ] && . ${configDir .path }/bash-config.bash || true
429434## [/Completion]
0 commit comments