mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-15 18:56:47 -04:00
use mtt
for integration tests
This commit is contained in:
parent
4b496a1e61
commit
5642f139df
17 changed files with 75 additions and 130 deletions
10
mtt.lua
Normal file
10
mtt.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
mtt.register("send mail", function(callback)
|
||||
-- send a mail
|
||||
mail.send("player1", "player2", "something", "blah")
|
||||
|
||||
-- check the receivers inbox
|
||||
local list2 = mail.getMessages("player2")
|
||||
assert(list2 ~= nil and #list2 > 0)
|
||||
callback()
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue