summaryrefslogtreecommitdiff
path: root/lua/tests
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2021-12-10 16:32:28 +0100
committerGitHub <noreply@github.com>2021-12-10 16:32:28 +0100
commit61240ac75a93b3cdafb4325ab4e9d407f83965f4 (patch)
tree76423432dc848be4e1c7a86ab37abb335c467794 /lua/tests
parent80cdb00b221f69348afc4fb4b701f51eb8dd3120 (diff)
break: bump the minimum required neovim version to 0.6 or higher (#1549)
So we can use `vim.json` and `vim.diagnostics`. If you aren't able to update to 0.6.* yet you should pin the previous commit.
Diffstat (limited to 'lua/tests')
-rw-r--r--lua/tests/automated/pickers/find_files_spec.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/tests/automated/pickers/find_files_spec.lua b/lua/tests/automated/pickers/find_files_spec.lua
index b4001cc..e9094cb 100644
--- a/lua/tests/automated/pickers/find_files_spec.lua
+++ b/lua/tests/automated/pickers/find_files_spec.lua
@@ -42,9 +42,9 @@ describe("builtin.find_files", function()
width = 0.9,
},
border = false,
- }, vim.fn.json_decode([==[%s]==])))
+ }, vim.json.decode([==[%s]==])))
]],
- vim.fn.json_encode(configuration)
+ vim.json.encode(configuration)
))
end)
@@ -73,10 +73,10 @@ describe("builtin.find_files", function()
width = 0.9,
},
border = false,
- }, vim.fn.json_decode([==[%s]==])))
+ }, vim.json.decode([==[%s]==])))
]],
expected,
- vim.fn.json_encode(configuration)
+ vim.json.encode(configuration)
))
end)
@@ -99,9 +99,9 @@ describe("builtin.find_files", function()
}, vim.tbl_extend("force", {
disable_devicons = false,
sorter = require('telescope.sorters').get_fzy_sorter(),
- }, vim.fn.json_decode([==[%s]==])))
+ }, vim.json.decode([==[%s]==])))
]],
- vim.fn.json_encode(configuration)
+ vim.json.encode(configuration)
))
end)
end