Skip to content

Commit

Permalink
Make simple hashrocket test cover a bit more of how the function works
Browse files Browse the repository at this point in the history
This change just makes sure that the alignment of hashrockets happens
for all parameters in the same resource and with different parameter
name lengths.
  • Loading branch information
lelutin committed Sep 14, 2024
1 parent 1ca2c89 commit 78375fb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/format/hashrocket.vader
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
Given puppet (simple resource with autoformat while writing):
Given puppet (simple resource without hashrocket alignment):
file { 'foo':
ensure => present,
mode => '0700',
require => Package['this-and-that'],
}

Do (format resource):
Do (autoformat resource while adding new parameter):
joforce=>true,

Expect puppet (formated resource):
file { 'foo':
ensure => present,
force => true,
ensure => present,
force => true,
mode => '0700',
require => Package['this-and-that'],
}

-------------------------------------------------------------------------------
Expand Down

0 comments on commit 78375fb

Please sign in to comment.