diff --git a/init.lua b/init.lua index e5b2c0e..a9a0776 100644 --- a/init.lua +++ b/init.lua @@ -4,7 +4,9 @@ local input = require("lib-core.input") -function init(ctx) +local M = {} + +function M.run_tests(ctx) -- Engine surface present (7 assertions) engine.test.assert(type(engine.input.MOUSE_LEFT) == "number", "MOUSE_LEFT constant is integer") @@ -52,3 +54,5 @@ function init(ctx) engine.test.equals(input.action_count(), 3, "key-only bind still works after BIND_MAP refactor") end + +return M diff --git a/manifest.module b/manifest.lib similarity index 62% rename from manifest.module rename to manifest.lib index 6a0bffa..d032325 100644 --- a/manifest.module +++ b/manifest.lib @@ -1,10 +1,9 @@ { "id": "lib-core.input-test", - "kind": "test-module", + "role": "test", "version": "0.1.0", - "api": "^0.1", - "entry_point": "init.lua", + "api_min": "0.1", "deps": [ {"id": "lib-core.input", "version": "0.4.0"} ] -} +} \ No newline at end of file