-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(test): adding missing dep for tests
- Loading branch information
Showing
4 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
local plugin = require('java-dap') | ||
|
||
describe('setup', function() | ||
it('java-dap', function() | ||
assert('plugin module should be avaiable', plugin) | ||
assert('setup module should be avaiable', require('java-dap.api.setup')) | ||
end) | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
---@diagnostic disable: assign-type-mismatch | ||
---@param dev_path string | ||
---@param plug_path string | ||
---@return string|nil | ||
local function local_plug(dev_path, plug_path) | ||
return (vim.fn.isdirectory(dev_path) == 1) and dev_path or plug_path | ||
end | ||
|
||
local plug_path = './.test_plugins' | ||
|
||
vim.opt.rtp:append(plug_path .. '/plenary.nvim') | ||
vim.opt.rtp:append( | ||
local_plug('~/Workspace/nvim-java-core', plug_path .. '/nvim-java-core') | ||
) |