diff options
| author | William Boman <william@redwill.se> | 2022-07-06 19:41:43 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2022-07-07 00:39:59 +0200 |
| commit | 5f634e0c37e723fc0c33e06b4fd5c2180178db40 (patch) | |
| tree | fa4f09363adefa8259e23e4d1ea036db628b1243 /tests/setup/automatic_installation_exclude_spec.lua | |
| parent | feat(health): use stderr for java version, also check for JAVA_HOME (#765) (diff) | |
| download | mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.gz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.bz2 mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.lz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.xz mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.tar.zst mason-5f634e0c37e723fc0c33e06b4fd5c2180178db40.zip | |
mason.nvim
Diffstat (limited to 'tests/setup/automatic_installation_exclude_spec.lua')
| -rw-r--r-- | tests/setup/automatic_installation_exclude_spec.lua | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/setup/automatic_installation_exclude_spec.lua b/tests/setup/automatic_installation_exclude_spec.lua deleted file mode 100644 index bfa5c81b..00000000 --- a/tests/setup/automatic_installation_exclude_spec.lua +++ /dev/null @@ -1,44 +0,0 @@ -local spy = require "luassert.spy" -local lspconfig = require "lspconfig" -local configs = require "lspconfig.configs" -local servers = require "nvim-lsp-installer.servers" - -describe("automatic_installation_exclude", function() - it( - "should install servers set up via lspconfig", - async_test(function() - local server1_installer_spy = spy.new() - local server2_installer_spy = spy.new() - local server1 = ServerGenerator { - name = "automatic_installation_exclude1", - installer = function() - server1_installer_spy() - end, - } - local server2 = ServerGenerator { - name = "automatic_installation_exclude2", - installer = function() - server2_installer_spy() - end, - } - - servers.register(server1) - servers.register(server2) - - configs[server1.name] = { default_config = {} } - configs[server2.name] = { default_config = {} } - - require("nvim-lsp-installer").setup { - automatic_installation = { exclude = { server2.name } }, - } - - lspconfig[server1.name].setup {} - lspconfig[server2.name].setup {} - - assert.wait_for(function() - assert.spy(server1_installer_spy).was_called(1) - assert.spy(server2_installer_spy).was_called(0) - end) - end) - ) -end) |
