diff options
author | James McCoy <jamessan@jamessan.com> | 2020-12-28 20:48:15 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2021-01-31 07:54:21 -0500 |
commit | db734ae99463c498309bc8830f902fb65c6523f3 (patch) | |
tree | 4fd8b39905c1e056d71cd78f94d76be530883394 /test/functional/core | |
parent | a199363be246dc097b74abfe2703c5058aa8ad45 (diff) | |
download | rneovim-db734ae99463c498309bc8830f902fb65c6523f3.tar.gz rneovim-db734ae99463c498309bc8830f902fb65c6523f3.tar.bz2 rneovim-db734ae99463c498309bc8830f902fb65c6523f3.zip |
test(job): Ensure job-specific env var overrides global env var
Diffstat (limited to 'test/functional/core')
-rw-r--r-- | test/functional/core/job_spec.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 69b221d7e4..b59d87eb12 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -63,6 +63,7 @@ describe('jobs', function() it('append environment #env', function() nvim('command', "let $VAR = 'abc'") + nvim('command', "let $TOTO = 'goodbye world'") nvim('command', "let g:job_opts.env = {'TOTO': 'hello world'}") if iswin() then nvim('command', [[call jobstart('echo %TOTO% %VAR%', g:job_opts)]]) @@ -77,6 +78,7 @@ describe('jobs', function() it('append environment with pty #env', function() nvim('command', "let $VAR = 'abc'") + nvim('command', "let $TOTO = 'goodbye world'") nvim('command', "let g:job_opts.pty = v:true") nvim('command', "let g:job_opts.env = {'TOTO': 'hello world'}") if iswin() then @@ -91,6 +93,7 @@ describe('jobs', function() it('replace environment #env', function() nvim('command', "let $VAR = 'abc'") + nvim('command', "let $TOTO = 'goodbye world'") nvim('command', "let g:job_opts.env = {'TOTO': 'hello world'}") nvim('command', "let g:job_opts.clear_env = 1") |