Skip to content

Commit

Permalink
test: fix test utils import
Browse files Browse the repository at this point in the history
test: fix global assignment

Fixes tests error:
	Error detected while processing /home/runner/work/octo.nvim/octo.nvim/lua/tests/minimal_init.vim:
	line   13:
	E5108: Error executing lua [string ":lua"]:2: Vim(luafile):E5112: Error while creating lua chunk: cannot open ./tests/test_utils.lua: No such file or directory
	stack traceback:
	[C]: in function 'cmd'
	[string ":lua"]:2: in main chunk

========================================
  • Loading branch information
legobeat committed Oct 14, 2024
1 parent c8f503b commit 81feee0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lua/tests/minimal_init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ runtime! plugin/octo.nvim

lua << EOF
require("plenary/busted")
vim.cmd[[luafile ./tests/test_utils.lua]]
require("tests/test_utils")
require("octo").setup()
EOF
2 changes: 0 additions & 2 deletions lua/tests/test_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ end
-- Globals
------------------

_G.eq = assert.are.same

_G.Test_filter = function(data)
local run_data = {}
for _, value in pairs(data) do
Expand Down

0 comments on commit 81feee0

Please sign in to comment.