diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-15 00:02:37 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-15 00:03:21 +0200 |
commit | efb6caa39bbe1152173c3e3d462373d7f8b96b2f (patch) | |
tree | 1741eafd9520db3eff613f81e1a5f220cb36f071 | |
parent | 36b2e3f743aaeb27531e67079d1a20bb4ac75e35 (diff) | |
download | rneovim-efb6caa39bbe1152173c3e3d462373d7f8b96b2f.tar.gz rneovim-efb6caa39bbe1152173c3e3d462373d7f8b96b2f.tar.bz2 rneovim-efb6caa39bbe1152173c3e3d462373d7f8b96b2f.zip |
test: nodejs_spec: fix test after upstream API change
closes https://github.com/neovim/node-client/issues/72
-rw-r--r-- | test/functional/provider/nodejs_spec.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/functional/provider/nodejs_spec.lua b/test/functional/provider/nodejs_spec.lua index d9af020bfe..f69c3e7c78 100644 --- a/test/functional/provider/nodejs_spec.lua +++ b/test/functional/provider/nodejs_spec.lua @@ -45,15 +45,13 @@ describe('nodejs host', function() const nvim = neovim.attach({socket: socket}); class TestPlugin { - hello() { - this.nvim.command('let g:job_out = "hello-plugin"') - } + hello() { + this.nvim.command('let g:job_out = "hello-plugin"'); + } } - const PluginClass = neovim.Plugin(TestPlugin); - const plugin = new PluginClass(nvim); - plugin.hello(); - nvim.command('call jobstop(g:job_id)'); + const plugin = new neovim.NvimPlugin(null, PluginClass, nvim); + plugin.instance.hello(); ]]) command('let g:job_id = jobstart(["node", "'..fname..'"])') retry(nil, 2000, function() eq('hello-plugin', eval('g:job_out')) end) |