Skip to content

Commit

Permalink
Quit vendoring test assertlib
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed Oct 9, 2023
1 parent 83e4408 commit d444d5e
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 272 deletions.
6 changes: 2 additions & 4 deletions lua/waitevent/test/helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ local helper = require("vusted.helper")
local plugin_name = helper.get_module_root(...)

helper.root = helper.find_plugin_root(plugin_name)
vim.opt.packpath:prepend(vim.fs.joinpath(helper.root, "spec/.shared/packages"))
require("assertlib").register(require("vusted.assert").register)

function helper.before_each()
helper.test_data = require("waitevent.vendor.misclib.test.data_dir").setup(helper.root)
Expand Down Expand Up @@ -67,8 +69,4 @@ function helper.job_start(cmd, raw_opts, input)
return id
end

local asserts = require("vusted.assert").asserts
local asserters = require(plugin_name .. ".vendor.assertlib").list()
require(plugin_name .. ".vendor.misclib.test.assert").register(asserts.create, asserters)

return helper
62 changes: 0 additions & 62 deletions lua/waitevent/vendor/assertlib/asserter.lua

This file was deleted.

55 changes: 0 additions & 55 deletions lua/waitevent/vendor/assertlib/function/buffer.lua

This file was deleted.

19 changes: 0 additions & 19 deletions lua/waitevent/vendor/assertlib/function/cursor.lua

This file was deleted.

7 changes: 0 additions & 7 deletions lua/waitevent/vendor/assertlib/function/list.lua

This file was deleted.

36 changes: 0 additions & 36 deletions lua/waitevent/vendor/assertlib/function/message.lua

This file was deleted.

7 changes: 0 additions & 7 deletions lua/waitevent/vendor/assertlib/function/mode.lua

This file was deleted.

11 changes: 0 additions & 11 deletions lua/waitevent/vendor/assertlib/function/tab.lua

This file was deleted.

11 changes: 0 additions & 11 deletions lua/waitevent/vendor/assertlib/function/window.lua

This file was deleted.

34 changes: 0 additions & 34 deletions lua/waitevent/vendor/assertlib/init.lua

This file was deleted.

16 changes: 0 additions & 16 deletions lua/waitevent/vendor/misclib/test/assert.lua

This file was deleted.

10 changes: 0 additions & 10 deletions spec/lua/waitevent/vendorlib.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
return {
"notomo/assertlib.nvim/lua/assertlib/asserter.lua",
"notomo/assertlib.nvim/lua/assertlib/function/buffer.lua",
"notomo/assertlib.nvim/lua/assertlib/function/cursor.lua",
"notomo/assertlib.nvim/lua/assertlib/function/list.lua",
"notomo/assertlib.nvim/lua/assertlib/function/message.lua",
"notomo/assertlib.nvim/lua/assertlib/function/mode.lua",
"notomo/assertlib.nvim/lua/assertlib/function/tab.lua",
"notomo/assertlib.nvim/lua/assertlib/function/window.lua",
"notomo/assertlib.nvim/lua/assertlib/init.lua",
"notomo/misclib.nvim/lua/misclib/module.lua",
"notomo/misclib.nvim/lua/misclib/test/assert.lua",
"notomo/misclib.nvim/lua/misclib/test/data_dir.lua",
}

0 comments on commit d444d5e

Please sign in to comment.