mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Support hooks with custom node version.
This commit is contained in:
parent
4b98b39cea
commit
511de4fe32
8 changed files with 61 additions and 31 deletions
|
|
@ -32,6 +32,14 @@ def test_run_versioned_hook(config_for_python3_hooks_repo, store):
|
|||
assert ret[1] == "3.3\n['/dev/null']\nHello World\n"
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
def test_run_versioned_node_hook(config_for_node_0_11_8_hooks_repo, store):
|
||||
repo = Repository.create(config_for_node_0_11_8_hooks_repo, store)
|
||||
ret = repo.run_hook('node-11-8-hook', ['/dev/null'])
|
||||
assert ret[0] == 0
|
||||
assert ret[1] == 'v0.11.8\nHello World\n'
|
||||
|
||||
|
||||
@pytest.mark.integration
|
||||
def test_lots_of_files(config_for_python_hooks_repo, store):
|
||||
repo = Repository.create(config_for_python_hooks_repo, store)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue