This commit is contained in:
BuckarooBanzay 2023-03-28 15:47:53 +02:00 committed by Athozus
parent dff068d75b
commit e8c7fde4c3
No known key found for this signature in database
GPG key ID: B50895022E8484BF
8 changed files with 95 additions and 20 deletions

12
util/normalize.spec.lua Normal file
View file

@ -0,0 +1,12 @@
mtt.register("util/normalize_players_and_add_recipients", function(callback)
local recipients = {}
local undeliverable = {}
local to = mail.normalize_players_and_add_recipients("player1,player2", recipients, undeliverable)
assert(to == "player1, player2")
assert(not next(undeliverable))
assert(recipients["player1"])
assert(recipients["player2"])
callback()
end)