Skip to content

Commit

Permalink
ci: check that there are no #focus tags left over in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikavilpas committed Jun 15, 2024
1 parent 2a97694 commit e8ae16d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ init:

lint:
selene ./lua/ ./spec/
@if grep -r -e "#focus" --include \*.lua .; then \
echo "\n"; \
echo "Error: ${COLOR_GREEN}#focus${COLOR_RESET} tags found in the codebase.\n"; \
echo "Please remove them to prevent issues with not accidentally running all tests."; \
exit 1; \
fi


test:
luarocks test --local
Expand Down
2 changes: 1 addition & 1 deletion spec/yazi/yazi_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('opening a file', function()
)
end)

it('#focus opens yazi with the current directory selected', function()
it('opens yazi with the current directory selected', function()
vim.api.nvim_command('edit /tmp/')

plugin.yazi({
Expand Down

0 comments on commit e8ae16d

Please sign in to comment.