diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-12-23 13:31:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-23 13:31:05 -0500 |
| commit | 049602a2c5f436fd7758fe5dd2fd1fcea696b83b (patch) | |
| tree | df8297e7904e2f30bfe1a33587269a6794ddb962 /lua/tests/automated | |
| parent | 4850c6df6d04aa6b98912b1dac9def713b1eda44 (diff) | |
ci: more tests (#359)
* more tests
* lint
Diffstat (limited to 'lua/tests/automated')
| -rw-r--r-- | lua/tests/automated/pickers/find_files_spec.lua | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lua/tests/automated/pickers/find_files_spec.lua b/lua/tests/automated/pickers/find_files_spec.lua index 6035075..c5cf50e 100644 --- a/lua/tests/automated/pickers/find_files_spec.lua +++ b/lua/tests/automated/pickers/find_files_spec.lua @@ -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) |
