Skip to content

Commit a6585e9

Browse files
committed
Add a couple of tests
1 parent 736812d commit a6585e9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/nodeenv_test.py

+11
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,14 @@ def test_parse_version():
167167
assert nodeenv.parse_version("v21.7") == (21, 7)
168168
assert nodeenv.parse_version("v21.7.3") == (21, 7, 3)
169169
assert nodeenv.parse_version("v21.7.3+0-b20240228T18452699") == (21, 7, 3)
170+
171+
172+
def test_clear_output():
173+
assert nodeenv.clear_output(
174+
bytes('some \ntext', 'utf-8')) == 'some text'
175+
176+
177+
def test_remove_env_bin_from_path():
178+
assert (nodeenv.remove_env_bin_from_path(
179+
'//home://home/env/bin://home/bin', '//home/env/bin')
180+
== '//home://home/bin')

0 commit comments

Comments
 (0)