File tree Expand file tree Collapse file tree 3 files changed +41
-41
lines changed Expand file tree Collapse file tree 3 files changed +41
-41
lines changed Original file line number Diff line number Diff 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
6767OUT
6868}
Original file line number Diff line number Diff 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
4747PKGS
4848
4949 run nodenv default-packages install 10.0.0
Original file line number Diff line number Diff 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
2828PKGS
2929
3030 run nodenv default-packages list
3131
3232 assert_success
33- assert_output - << - OUT
33+ assert_output - << OUT
3434fake-package
3535another-package
3636OUT
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
4545PKGS
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'
5555OUT
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
6464PKGS
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'
7474OUT
7575}
7676
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
9191OUT
9292}
9393
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
104104OUT
105105}
You can’t perform that action at this time.
0 commit comments