Skip to content

Commit 25deb31

Browse files
committed
Remove indentation to make editorconfig happy
This is really a bug in editorconfig-checker, IMO. Lines within heredocs are not "indentation" and can't be arbitrarily changed. editorconfig-checker/editorconfig-checker#480
1 parent e2c1594 commit 25deb31

File tree

3 files changed

+41
-41
lines changed

3 files changed

+41
-41
lines changed

test/files.bats

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ load test_helper
5959
XDG_CONFIG_DIRS="$HOME/myconfig:$HOME/theirconfig" run nodenv default-packages files
6060

6161
assert_success
62-
assert_output - <<-OUT
63-
$NODENV_ROOT/default-packages
64-
$HOME/.config/nodenv/default-packages
65-
$HOME/myconfig/nodenv/default-packages
66-
$HOME/theirconfig/nodenv/default-packages
62+
assert_output - <<OUT
63+
$NODENV_ROOT/default-packages
64+
$HOME/.config/nodenv/default-packages
65+
$HOME/myconfig/nodenv/default-packages
66+
$HOME/theirconfig/nodenv/default-packages
6767
OUT
6868
}

test/install.bats

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ load test_helper
4141

4242
@test "install npm-installs multiple packages in one command" {
4343
nodenv install --no-hooks 10.0.0
44-
with_file "$NODENV_ROOT/default-packages" <<-PKGS
45-
pkg1
46-
pkg2
44+
with_file "$NODENV_ROOT/default-packages" <<PKGS
45+
pkg1
46+
pkg2
4747
PKGS
4848

4949
run nodenv default-packages install 10.0.0

test/list.bats

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,58 +19,58 @@ load test_helper
1919
}
2020

2121
@test "list skips comments and empty lines" {
22-
with_file "$NODENV_ROOT/default-packages" <<-PKGS
23-
fake-package
22+
with_file "$NODENV_ROOT/default-packages" <<PKGS
23+
fake-package
2424
25-
# comment
25+
# comment
2626
27-
another-package
27+
another-package
2828
PKGS
2929

3030
run nodenv default-packages list
3131

3232
assert_success
33-
assert_output - <<-OUT
33+
assert_output - <<OUT
3434
fake-package
3535
another-package
3636
OUT
3737
}
3838

3939
@test "list handles packages with scopes" {
40-
with_file "$NODENV_ROOT/default-packages" <<-PKGS
41-
@fake/pkg1
42-
@fake/pkg2 ~1.2.3
43-
pkg3
44-
pkg4 >= 0.9.0 < 0.10.0
40+
with_file "$NODENV_ROOT/default-packages" <<PKGS
41+
@fake/pkg1
42+
@fake/pkg2 ~1.2.3
43+
pkg3
44+
pkg4 >= 0.9.0 < 0.10.0
4545
PKGS
4646

4747
run nodenv default-packages list
4848

4949
assert_success
50-
assert_output - <<-OUT
51-
@fake/pkg1
52-
@fake/pkg2@'~1.2.3'
53-
pkg3
54-
pkg4@'>= 0.9.0 < 0.10.0'
50+
assert_output - <<OUT
51+
@fake/pkg1
52+
@fake/pkg2@'~1.2.3'
53+
pkg3
54+
pkg4@'>= 0.9.0 < 0.10.0'
5555
OUT
5656
}
5757

5858
@test "list wraps version spec in quotes" {
59-
with_file "$NODENV_ROOT/default-packages" <<-PKGS
60-
@fake/pkg1
61-
@fake/pkg2 ~1.2.3
62-
pkg3
63-
pkg4 >= 0.9.0 < 0.10.0
59+
with_file "$NODENV_ROOT/default-packages" <<PKGS
60+
@fake/pkg1
61+
@fake/pkg2 ~1.2.3
62+
pkg3
63+
pkg4 >= 0.9.0 < 0.10.0
6464
PKGS
6565

6666
run nodenv default-packages list
6767

6868
assert_success
69-
assert_output - <<-OUT
70-
@fake/pkg1
71-
@fake/pkg2@'~1.2.3'
72-
pkg3
73-
pkg4@'>= 0.9.0 < 0.10.0'
69+
assert_output - <<OUT
70+
@fake/pkg1
71+
@fake/pkg2@'~1.2.3'
72+
pkg3
73+
pkg4@'>= 0.9.0 < 0.10.0'
7474
OUT
7575
}
7676

@@ -83,11 +83,11 @@ OUT
8383
XDG_CONFIG_DIRS="$HOME/myconfig:$HOME/theirconfig" run nodenv default-packages list
8484

8585
assert_success
86-
assert_output - <<-OUT
87-
pkg-from-nodenv-root
88-
pkg-from-config-home
89-
pkg-from-config-dirs1
90-
pkg-from-config-dirs2
86+
assert_output - <<OUT
87+
pkg-from-nodenv-root
88+
pkg-from-config-home
89+
pkg-from-config-dirs1
90+
pkg-from-config-dirs2
9191
OUT
9292
}
9393

@@ -98,8 +98,8 @@ OUT
9898
XDG_CONFIG_DIRS="$HOME/my config:$HOME/their config" run nodenv default-packages list
9999

100100
assert_success
101-
assert_output - <<-OUT
102-
pkg-from-config-dirs1
103-
pkg-from-config-dirs2
101+
assert_output - <<OUT
102+
pkg-from-config-dirs1
103+
pkg-from-config-dirs2
104104
OUT
105105
}

0 commit comments

Comments
 (0)