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
59
59
XDG_CONFIG_DIRS=" $HOME /myconfig:$HOME /theirconfig" run nodenv default-packages files
60
60
61
61
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
67
67
OUT
68
68
}
Original file line number Diff line number Diff line change @@ -41,9 +41,9 @@ load test_helper
41
41
42
42
@test " install npm-installs multiple packages in one command" {
43
43
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
47
47
PKGS
48
48
49
49
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
19
19
}
20
20
21
21
@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
24
24
25
- # comment
25
+ # comment
26
26
27
- another-package
27
+ another-package
28
28
PKGS
29
29
30
30
run nodenv default-packages list
31
31
32
32
assert_success
33
- assert_output - << - OUT
33
+ assert_output - << OUT
34
34
fake-package
35
35
another-package
36
36
OUT
37
37
}
38
38
39
39
@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
45
45
PKGS
46
46
47
47
run nodenv default-packages list
48
48
49
49
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'
55
55
OUT
56
56
}
57
57
58
58
@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
64
64
PKGS
65
65
66
66
run nodenv default-packages list
67
67
68
68
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'
74
74
OUT
75
75
}
76
76
83
83
XDG_CONFIG_DIRS=" $HOME /myconfig:$HOME /theirconfig" run nodenv default-packages list
84
84
85
85
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
91
91
OUT
92
92
}
93
93
98
98
XDG_CONFIG_DIRS=" $HOME /my config:$HOME /their config" run nodenv default-packages list
99
99
100
100
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
104
104
OUT
105
105
}
You can’t perform that action at this time.
0 commit comments