diff options
| author | William Boman <william@redwill.se> | 2022-09-13 14:14:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-13 14:14:22 +0200 |
| commit | 2ca0caadbe9117cb295edda6aa3c03e354f2c3c1 (patch) | |
| tree | 2d855881b174cfa9dfbaca4890d899b052216597 /tests | |
| parent | chore: update generated code (#53) (diff) | |
| download | mason-lspconfig-2ca0caadbe9117cb295edda6aa3c03e354f2c3c1.tar mason-lspconfig-2ca0caadbe9117cb295edda6aa3c03e354f2c3c1.tar.gz mason-lspconfig-2ca0caadbe9117cb295edda6aa3c03e354f2c3c1.tar.bz2 mason-lspconfig-2ca0caadbe9117cb295edda6aa3c03e354f2c3c1.tar.lz mason-lspconfig-2ca0caadbe9117cb295edda6aa3c03e354f2c3c1.tar.xz mason-lspconfig-2ca0caadbe9117cb295edda6aa3c03e354f2c3c1.tar.zst mason-lspconfig-2ca0caadbe9117cb295edda6aa3c03e354f2c3c1.zip | |
chore: add selene & cbfmt (#54)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/helpers/lua/test_helpers.lua | 1 | ||||
| -rw-r--r-- | tests/mason-lspconfig/api/api_spec.lua | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/helpers/lua/test_helpers.lua b/tests/helpers/lua/test_helpers.lua index 57c0b4f..1880c39 100644 --- a/tests/helpers/lua/test_helpers.lua +++ b/tests/helpers/lua/test_helpers.lua @@ -16,6 +16,7 @@ function async_test(suspend_fn) end end +-- selene: allow(incorrect_standard_library_use) mockx = { just_runs = function() end, returns = function(val) diff --git a/tests/mason-lspconfig/api/api_spec.lua b/tests/mason-lspconfig/api/api_spec.lua index e4f398d..01a4d13 100644 --- a/tests/mason-lspconfig/api/api_spec.lua +++ b/tests/mason-lspconfig/api/api_spec.lua @@ -5,7 +5,7 @@ describe("mason-lspconfig API", function() it("should return all available servers", function() local server_mappings = require "mason-lspconfig.mappings.server" local available_servers = mason_lspconfig.get_available_servers() - assert.equal(#vim.tbl_keys(server_mappings.package_to_lspconfig), #available_servers) + assert.equals(#vim.tbl_keys(server_mappings.package_to_lspconfig), #available_servers) end) it("should return all available servers for given filetype", function() |
