Skip to content

Commit

Permalink
Add a couple of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Jun 4, 2024
1 parent 736812d commit a6585e9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/nodeenv_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,14 @@ def test_parse_version():
assert nodeenv.parse_version("v21.7") == (21, 7)
assert nodeenv.parse_version("v21.7.3") == (21, 7, 3)
assert nodeenv.parse_version("v21.7.3+0-b20240228T18452699") == (21, 7, 3)


def test_clear_output():
assert nodeenv.clear_output(
bytes('some \ntext', 'utf-8')) == 'some text'


def test_remove_env_bin_from_path():
assert (nodeenv.remove_env_bin_from_path(
'//home://home/env/bin://home/bin', '//home/env/bin')
== '//home://home/bin')

0 comments on commit a6585e9

Please sign in to comment.