@@ -223,7 +223,8 @@ void main() {
223223 expect (configFile.existsSync (), true );
224224
225225 // ignore: leading_newlines_in_multiline_strings
226- expect (configFile.readAsStringSync (), '''## [very_good]
226+ expect (configFile.readAsStringSync (), '''
227+ \n ## [very_good]
227228## Completion config for "very_good"
228229[[ -f ${configDir .path }/very_good.zsh ]] && . ${configDir .path }/very_good.zsh || true
229230## [/very_good]
@@ -283,7 +284,8 @@ void main() {
283284 installation.writeToShellConfigFile ('very_good' );
284285
285286 // ignore: leading_newlines_in_multiline_strings
286- expect (rcFile.readAsStringSync (), '''## [Completion]
287+ expect (rcFile.readAsStringSync (), '''
288+ \n ## [Completion]
287289## Completion scripts setup. Remove the following line to uninstall
288290[[ -f ${configDir .path }/zsh-config.zsh ]] && . ${configDir .path }/zsh-config.zsh || true
289291## [/Completion]
@@ -390,7 +392,8 @@ void main() {
390392 // rc fle includes one reference to the global config
391393
392394 // ignore: leading_newlines_in_multiline_strings
393- expect (rcFile.readAsStringSync (), '''## [Completion]
395+ expect (rcFile.readAsStringSync (), '''
396+ \n ## [Completion]
394397## Completion scripts setup. Remove the following line to uninstall
395398[[ -f ${configDir .path }/zsh-config.zsh ]] && . ${configDir .path }/zsh-config.zsh || true
396399## [/Completion]
@@ -403,12 +406,13 @@ void main() {
403406 );
404407
405408 // ignore: leading_newlines_in_multiline_strings
406- expect (globalConfig.readAsStringSync (), '''## [very_good]
409+ expect (globalConfig.readAsStringSync (), '''
410+ \n ## [very_good]
407411## Completion config for "very_good"
408412[[ -f ${configDir .path }/very_good.zsh ]] && . ${configDir .path }/very_good.zsh || true
409413## [/very_good]
410414
411- ## [not_good]
415+ \n ## [not_good]
412416## Completion config for "not_good"
413417[[ -f ${configDir .path }/not_good.zsh ]] && . ${configDir .path }/not_good.zsh || true
414418## [/not_good]
@@ -441,7 +445,8 @@ void main() {
441445 ..install ('not_good' );
442446
443447 // ignore: leading_newlines_in_multiline_strings
444- expect (bashProfile.readAsStringSync (), '''## [Completion]
448+ expect (bashProfile.readAsStringSync (), '''
449+ \n ## [Completion]
445450## Completion scripts setup. Remove the following line to uninstall
446451[ -f ${configDir .path }/bash-config.bash ] && . ${configDir .path }/bash-config.bash || true
447452## [/Completion]
0 commit comments