Skip to content

Commit b923599

Browse files
committed
chore(busted): move tests to separate file for simplicity
1 parent 7ff09f7 commit b923599

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

.busted

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ return {
22
_all = {
33
coverage = false,
44
lpath = "lua/?.lua;lua/?/init.lua",
5-
pattern = "module%.lua$",
6-
-- auto_insulate = false,
5+
pattern = "tests%.lua$",
76
ROOT = { "lua/" },
87
},
98
default = {

lua/neorg/core/modules.lua

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ local utils = require("neorg.core.utils")
4545
--- @field setup? fun(): neorg.module.setup? Function that is invoked before any other loading occurs. Should perform preliminary startup tasks.
4646
--- @field replaced? boolean If `true`, this means the module is a replacement for a core module. This flag is set automatically whenever `setup().replaces` is set to a value.
4747
--- @field on_event fun(event: neorg.event) A callback that is invoked any time an event the module has subscribed to has fired.
48-
--- @field tests function A function for running tests.
4948

5049
local modules = {}
5150

lua/neorg/modules/core/integrations/treesitter/module.lua

-11
Original file line numberDiff line numberDiff line change
@@ -911,15 +911,4 @@ module.events.subscribed = {
911911
},
912912
}
913913

914-
module.tests = function()
915-
describe(
916-
"initial test to see if CI works (cannot be tested on a branch, must be tested on main, `act` doesn't work here, help)",
917-
function()
918-
it("should be working", function()
919-
assert.truthy("Yessir.")
920-
end)
921-
end
922-
)
923-
end
924-
925914
return module
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
describe(
2+
"initial test to see if CI works (cannot be tested on a branch, must be tested on main, `act` doesn't work here, help)",
3+
function()
4+
local _ = require("neorg.modules.core.integrations.treesitter.module")
5+
6+
it("should be working", function()
7+
assert.truthy("Yessir.")
8+
end)
9+
end
10+
)

0 commit comments

Comments
 (0)