diff --git a/worldeditadditions_commands/commands/test/tests/credits.test.lua b/worldeditadditions_commands/commands/test/tests/credits.test.lua new file mode 100644 index 0000000..eca6ed1 --- /dev/null +++ b/worldeditadditions_commands/commands/test/tests/credits.test.lua @@ -0,0 +1,13 @@ +local Notify = worldeditadditions_core.notify +return worldeditadditions.normalize_test("notify", { + params = "", + description = "Sends message to player in all main notification formats (error, warn, ok, info).", + func = function(name, params_table) + local message = table.concat(params_table, " ") + Notify.error(name, message) + Notify.warn(name, message) + Notify.ok(name, message) + Notify.info(name, message) + Notify.custom(name, "@" .. name, "Good Job", "#FF00D7") + end +}) \ No newline at end of file diff --git a/worldeditadditions_commands/commands/test/tests/init.lua b/worldeditadditions_commands/commands/test/tests/init.lua index e94603f..0de4226 100644 --- a/worldeditadditions_commands/commands/test/tests/init.lua +++ b/worldeditadditions_commands/commands/test/tests/init.lua @@ -1,5 +1,6 @@ -- Test registry local test_id_paths = { + "credits.test.lua", "notify.test.lua", -- "stacktrace.test.lua", } diff --git a/worldeditadditions_commands/commands/test/tests/notify.test.lua b/worldeditadditions_commands/commands/test/tests/notify.test.lua index e8c9a9f..eca6ed1 100644 --- a/worldeditadditions_commands/commands/test/tests/notify.test.lua +++ b/worldeditadditions_commands/commands/test/tests/notify.test.lua @@ -8,5 +8,6 @@ return worldeditadditions.normalize_test("notify", { Notify.warn(name, message) Notify.ok(name, message) Notify.info(name, message) + Notify.custom(name, "@" .. name, "Good Job", "#FF00D7") end }) \ No newline at end of file diff --git a/worldeditadditions_commands/commands/test/tests/stacktrace.test.lua b/worldeditadditions_commands/commands/test/tests/stacktrace.test.lua new file mode 100644 index 0000000..e69de29