From 86dcd4d4ec014c5cb47033c52a54508acd503b97 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Thu, 28 Nov 2024 22:44:19 +0100 Subject: refactor: deprecate util.path.is_file #3474 --- test/lspconfig_spec.lua | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'test') diff --git a/test/lspconfig_spec.lua b/test/lspconfig_spec.lua index 31d03f1d..8f02960f 100644 --- a/test/lspconfig_spec.lua +++ b/test/lspconfig_spec.lua @@ -49,35 +49,6 @@ describe('lspconfig', function() end) end) - describe('is_file', function() - it('is file', function() - local lspconfig = require 'lspconfig' - - -- change the working directory to test directory - vim.api.nvim_command 'cd ./test/test_dir/' - local file = vim.fn.getcwd() .. '/root_marker.txt' - - eq(true, lspconfig.util.path.is_file(file)) - end) - - it('is not present file', function() - local lspconfig = require 'lspconfig' - - -- change the working directory to test directory - vim.api.nvim_command 'cd ./test/test_dir/' - local file = vim.fn.getcwd() .. '/not_exists.txt' - - eq(true, not lspconfig.util.path.is_file(file)) - end) - - it('is directory', function() - local lspconfig = require 'lspconfig' - - local cwd = vim.fn.getcwd() - eq(true, not lspconfig.util.path.is_file(cwd)) - end) - end) - describe('is_absolute', function() it('is absolute', function() local lspconfig = require 'lspconfig' -- cgit v1.2.3-70-g09d2