fixup: fix failing tests

This commit is contained in:
shadmansaleh 2021-10-22 10:19:29 +06:00
parent 9433dbb762
commit 7ba7829a05
3 changed files with 10 additions and 8 deletions

10
.gitignore vendored
View File

@ -43,13 +43,15 @@ luac.out
tags
# helptags
doc/tags
/doc/tags
# panvimdoc
/panvimdoc/
# luacov
luacov.report
luacov.report.index
luacov.stats
/luacov.report
/luacov.report.index
/luacov.stats
# tests
/tmp_home/

View File

@ -13,7 +13,7 @@ test:
@export XDG_DATA_HOME='./tmp_home' && \
export XDG_CONFIG_HOME='./tmp_home' && \
nvim --headless --noplugin --clean -u lua/tests/minimal_init.lua -c "lua require'plenary.test_harness'.test_directory( 'lua/tests/', { minimal_init = './lua/tests/minimal_init.lua' })"
@rmdir tmp_home
@rm -rf tmp_home
# Install luacov & luacov-console from luarocks
testcov:
@ -27,7 +27,7 @@ testcov:
ifeq ($(NOCLEAN), )
@rm luacov.*
endif
@rmdir tmp_home
@rm -rf tmp_home
docgen:
@bash ./scripts/docgen.sh

View File

@ -347,7 +347,7 @@ describe('Location component', function()
component_separators = { left = '', right = '' },
padding = 0,
}
assert_component('location', opts, '%3l:%-2c')
assert_component('location', opts, '%3l:%-2v')
end)
end)
@ -357,7 +357,7 @@ describe('Progress component', function()
component_separators = { left = '', right = '' },
padding = 0,
}
assert_component('progress', opts, '%3P')
assert_component('progress', opts, '%3p%%')
end)
end)