fix: restore testing framework to actually work (#2070)

after refactor to some new asynchronous items for finders,
the tests stopped actually doing anything.

now they do things again.
This commit is contained in:
TJ DeVries
2022-08-04 16:00:30 -04:00
committed by GitHub
parent 75a5e50653
commit 4725867ec6
11 changed files with 304 additions and 82 deletions

View File

@@ -1,10 +1,8 @@
require("plenary.reload").reload_module "plenary"
require("plenary.reload").reload_module "telescope"
local tester = require "telescope.testharness"
local helper = require "telescope.testharness.helpers"
local runner = require "telescope.testharness.runner"
local tester = require "telescope.pickers._test"
local helper = require "telescope.pickers._test_helpers"
tester.builtin_picker("find_files", "telescope<c-n>", {
runner.picker("find_files", "telescope<c-n>", {
post_close = {
tester.not_ { "plugin/telescope.vim", helper.get_file },
},