aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-04-16 11:41:00 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-04-30 11:42:46 +0200
commitbc25a6a5c4fd659bbf78ba0a2442ecf14eb00398 (patch)
tree765ad28bc0745cbb0a4a41bea650a18d6d89ce88 /tests/unit
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-bc25a6a5c4fd659bbf78ba0a2442ecf14eb00398.tar
nvim-treesitter-bc25a6a5c4fd659bbf78ba0a2442ecf14eb00398.tar.gz
nvim-treesitter-bc25a6a5c4fd659bbf78ba0a2442ecf14eb00398.tar.bz2
nvim-treesitter-bc25a6a5c4fd659bbf78ba0a2442ecf14eb00398.tar.lz
nvim-treesitter-bc25a6a5c4fd659bbf78ba0a2442ecf14eb00398.tar.xz
nvim-treesitter-bc25a6a5c4fd659bbf78ba0a2442ecf14eb00398.tar.zst
nvim-treesitter-bc25a6a5c4fd659bbf78ba0a2442ecf14eb00398.zip
chore!: remove ensure_installed='maintained'
Removes all support (and tests) for the parser category "maintained", as this is no longer a useful category. BREAKING CHANGE: replace `ensure_installed='maintained'` by an explicit list of parsers, or use `'all'` (not recommended).
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/parsers_spec.lua46
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/unit/parsers_spec.lua b/tests/unit/parsers_spec.lua
deleted file mode 100644
index d40578b87..000000000
--- a/tests/unit/parsers_spec.lua
+++ /dev/null
@@ -1,46 +0,0 @@
-local stub = require "luassert.stub"
-local parsers = require "nvim-treesitter.parsers"
-
-describe("maintained_parsers", function()
- before_each(function()
- stub(vim.fn, "executable")
- end)
-
- after_each(function()
- vim.fn.executable:clear()
- end)
-
- it("does not return experimental parsers", function()
- local old_list = parsers.list
- parsers.list = {
- c = {
- install_info = {
- url = "https://github.com/tree-sitter/tree-sitter-c",
- files = { "src/parser.c" },
- },
- maintainers = { "@vigoux" },
- },
- d = {
- install_info = {
- url = "https://github.com/CyberShadow/tree-sitter-d",
- files = { "src/parser.c", "src/scanner.cc" },
- requires_generate_from_grammar = true,
- },
- maintainers = { "@nawordar" },
- experimental = true,
- },
- haskell = {
- install_info = {
- url = "https://github.com/tree-sitter/tree-sitter-haskell",
- files = { "src/parser.c", "src/scanner.cc" },
- },
- },
- }
-
- local expected = { "c" }
-
- assert.same(parsers.maintained_parsers(), expected)
-
- parsers.list = old_list
- end)
-end)