ci: more tests (#359)

* more tests

* lint
This commit is contained in:
TJ DeVries
2020-12-23 13:31:05 -05:00
committed by GitHub
parent 4850c6df6d
commit 049602a2c5
5 changed files with 93 additions and 54 deletions

View File

@@ -1,12 +1,16 @@
require('plenary.reload').reload_module('telescope')
local tester = require('telescope.pickers._tests')
local tester = require('telescope.pickers._test')
describe('builtin.find_files', function()
it('should find the readme', function()
tester.run_file('find_files__readme')
end)
it('should be able to move selections', function()
tester.run_file('find_files__with_ctrl_n')
end)
it('should not display devicons when disabled', function()
tester.run_string [[
tester.builtin_picker('find_files', 'README.md', {
@@ -105,4 +109,14 @@ describe('builtin.find_files', function()
})
]]
end)
it('should be able to get the current selection', function()
tester.run_string [[
tester.builtin_picker('find_files', 'fixtures/file_abc', {
post_typed = {
{ 'lua/tests/fixtures/file_abc.txt', GetSelectionValue },
}
})
]]
end)
end)