diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2017-12-16 16:29:33 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-12-17 16:09:18 +0100 |
commit | 5b692124cc94c8e5edc0c767e6a71887754643cd (patch) | |
tree | 852bda2d3c4c9517391e31d083a86c0fda27db5c /test/functional/provider/nodejs_spec.lua | |
parent | a1adfdc7d59979824addce2f519a527f9a5c0290 (diff) | |
download | rneovim-5b692124cc94c8e5edc0c767e6a71887754643cd.tar.gz rneovim-5b692124cc94c8e5edc0c767e6a71887754643cd.tar.bz2 rneovim-5b692124cc94c8e5edc0c767e6a71887754643cd.zip |
test: remove inspect test; set NODE_PATH in nodejs_spec.lua
provider#node#can_inspect will fail on some systems because it is common
to have old node versions in OS (any Linux OS that has LTS releases)
and CI (Travis, Appveyor).
NODE_PATH can be trivially set with VimL.
Build scripts don't have to set it for the nodejs tests to work.
NODE_PATH is optional to begin with and is used only as a workaround
for the neovim node.js host.
Diffstat (limited to 'test/functional/provider/nodejs_spec.lua')
-rw-r--r-- | test/functional/provider/nodejs_spec.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/test/functional/provider/nodejs_spec.lua b/test/functional/provider/nodejs_spec.lua index 9423243607..ef563dd0b0 100644 --- a/test/functional/provider/nodejs_spec.lua +++ b/test/functional/provider/nodejs_spec.lua @@ -4,8 +4,6 @@ local missing_provider = helpers.missing_provider local command = helpers.command local write_file = helpers.write_file local eval = helpers.eval -local sleep = helpers.sleep -local funcs = helpers.funcs local retry = helpers.retry do @@ -20,12 +18,7 @@ end before_each(function() clear() -end) - -describe('nodejs', function() - it('can inspect', function() - eq(1, funcs['provider#node#can_inspect']()) - end) + command([[let $NODE_PATH = get(split(system('npm root -g'), "\n"), 0, '')]]) end) describe('nodejs host', function() |