diff options
| author | William Boman <william@redwill.se> | 2022-03-05 22:42:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-05 22:42:25 +0100 |
| commit | f9299bb59c9e42d59fc57ed034fb84bdd23bbd77 (patch) | |
| tree | 0ac6e701d7fa206ce5e05b4daed2238ab1eaf6c0 /tests | |
| parent | async: raise errors instead of returning pcall-style (#521) (diff) | |
| download | mason-f9299bb59c9e42d59fc57ed034fb84bdd23bbd77.tar mason-f9299bb59c9e42d59fc57ed034fb84bdd23bbd77.tar.gz mason-f9299bb59c9e42d59fc57ed034fb84bdd23bbd77.tar.bz2 mason-f9299bb59c9e42d59fc57ed034fb84bdd23bbd77.tar.lz mason-f9299bb59c9e42d59fc57ed034fb84bdd23bbd77.tar.xz mason-f9299bb59c9e42d59fc57ed034fb84bdd23bbd77.tar.zst mason-f9299bb59c9e42d59fc57ed034fb84bdd23bbd77.zip | |
feat(ui): display installed server version (#520)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/jobs/outdated-servers/gem_spec.lua | 17 | ||||
| -rw-r--r-- | tests/server_spec.lua | 5 |
2 files changed, 17 insertions, 5 deletions
diff --git a/tests/jobs/outdated-servers/gem_spec.lua b/tests/jobs/outdated-servers/gem_spec.lua index 6367d7be..eb2ce086 100644 --- a/tests/jobs/outdated-servers/gem_spec.lua +++ b/tests/jobs/outdated-servers/gem_spec.lua @@ -25,4 +25,21 @@ describe("gem outdated package checker", function() assert.is_nil(gem_check.parse_outdated_gem "a whole bunch of gibberish!") assert.is_nil(gem_check.parse_outdated_gem "") end) + + it("should parse gem list output", function() + assert.equals( + vim.inspect { + ["solargraph"] = "0.44.3", + ["unicode-display_width"] = "2.1.0", + }, + vim.inspect(gem_check.parse_gem_list_output [[ + +*** LOCAL GEMS *** + +nokogiri (1.13.3 arm64-darwin) +solargraph (0.44.3) +unicode-display_width (2.1.0) +]]) + ) + end) end) diff --git a/tests/server_spec.lua b/tests/server_spec.lua index 5204fb69..744b4cf8 100644 --- a/tests/server_spec.lua +++ b/tests/server_spec.lua @@ -1,12 +1,7 @@ local spy = require "luassert.spy" -local match = require "luassert.match" local lsp_installer = require "nvim-lsp-installer" local server = require "nvim-lsp-installer.server" local a = require "nvim-lsp-installer.core.async" -local std = require "nvim-lsp-installer.installers.std" -local fs = require "nvim-lsp-installer.fs" -local path = require "nvim-lsp-installer.path" -local settings = require "nvim-lsp-installer.settings" describe("server", function() it( |
