summaryrefslogtreecommitdiff
path: root/lua/tests/automated
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2021-08-20 11:11:24 -0400
committerGitHub <noreply@github.com>2021-08-20 11:11:24 -0400
commita97af306c4e9c9a6fa7c886c0ffe3079822c5203 (patch)
treef5e2b50a767e93618d0d8fdddb8a964c90633c8a /lua/tests/automated
parentd6d28dbe324de9826a579155076873888169ba0f (diff)
feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs * short circuit to using bad finder if you pass writer.
Diffstat (limited to 'lua/tests/automated')
-rw-r--r--lua/tests/automated/telescope_spec.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/lua/tests/automated/telescope_spec.lua b/lua/tests/automated/telescope_spec.lua
index 9b4cd5e..3bb76c3 100644
--- a/lua/tests/automated/telescope_spec.lua
+++ b/lua/tests/automated/telescope_spec.lua
@@ -11,8 +11,13 @@ describe("telescope", function()
end)
describe("attach_mappings", function()
+ local new_picker = function(a, b)
+ a.finder = true
+ return picker.new(a, b)
+ end
+
it("should allow for passing in a function", function()
- local p = picker.new({}, {
+ local p = new_picker({}, {
attach_mappings = function()
return 1
end,
@@ -22,7 +27,7 @@ describe("telescope", function()
it("should override an attach mappings passed in by opts", function()
local called_order = {}
- local p = picker.new({
+ local p = new_picker({
attach_mappings = function()
table.insert(called_order, "opts")
end,