Skip to content

Commit 0b196b6

Browse files
committed
chore: add more annotations
1 parent 178c72d commit 0b196b6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/devto-nvim/setup_spec.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@ local M = {}
22
local stub = require("luassert.stub")
33
local spy = require("luassert.spy")
44
local match = require("luassert.match")
5+
local assert = require("luassert.assert")
56
local article = require("devto-nvim.article")
67
local busted = require("plenary.busted")
78
local describe = busted.describe
89
local before_each = busted.before_each
910
local after_each = busted.after_each
1011
local it = busted.it
1112

13+
--- Mocks a module and returns the mocked module
14+
--- @param module string
15+
--- @return table
1216
local function mock_internal(module)
1317
_G.package.loaded["devto-nvim"] = nil
1418
_G.package.loaded[module] = nil

tests/minimal_init.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
--- Load a module from a git repository.
2+
--- @param module string
3+
--- @param source string
14
local function load_module(module, source, directory)
25
local module_dir = directory or ("/tmp/" .. module)
36
local directory_exists = vim.fn.isdirectory(module_dir)
@@ -7,8 +10,6 @@ local function load_module(module, source, directory)
710
end
811

912
vim.opt.rtp:append(module_dir)
10-
11-
return module_dir
1213
end
1314

1415
local plenary_dir = os.getenv("PLENARY_DIR") or "/tmp/plenary.nvim"

0 commit comments

Comments
 (0)