Sha256: 13abf2dfd8044c71f2f976d87e58456be774bf9978e24ff6171bbdabc760a54a

Contents?: true

Size: 960 Bytes

Versions: 1

Compression:

Stored size: 960 Bytes

Contents

let s:suite = themis#suite("Client info")
let s:expect = themis#helper("expect")

function! s:suite.before_each() abort
  call RPluginFunctionArgs(1, 2)

  let s:client_chans = map(
        \ filter(nvim_list_chans(), "has_key(v:val, 'client')"),
        \ "v:val.client")
endfunction

function! s:suite.get_client_info() abort
  for client_info in s:client_chans
    call s:expect(sort(keys(client_info))).to_equal(
          \ ["attributes", "methods", "name", "type", "version"])

    call s:expect(client_info.attributes).to_be_dict()
    call s:expect(client_info.methods).to_equal({"specs": {"nargs": 1}, "poll": {}})
    call s:expect(client_info.name).to_match("ruby-\\(script\\|rplugin\\)-host")
    call s:expect(client_info.type).to_equal("host")

    call s:expect(client_info.version.major).to_be_number()
    call s:expect(client_info.version.minor).to_be_number()
    call s:expect(client_info.version.patch).to_be_number()
  endfor
endfunction

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neovim-0.10.0 spec/acceptance/client_info_spec.vim