mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 14:00:49 +00:00
test: nodejs_spec: fix test after upstream API change
closes https://github.com/neovim/node-client/issues/72
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user