mirror of
https://github.com/britzl/monarch.git
synced 2025-09-27 10:02:21 +02:00
Added monarch.is_popup() (#70)
This commit is contained in:
@@ -572,5 +572,11 @@ return function()
|
||||
local ok, err = monarch.post(POPUP1, "foobar")
|
||||
assert(not ok and err, "Expected monarch.post() to return false plus an error message")
|
||||
end)
|
||||
|
||||
|
||||
it("should be able to check if a screen is is a popup", function()
|
||||
assert(not monarch.is_popup(SCREEN1))
|
||||
assert(monarch.is_popup(POPUP1))
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
Reference in New Issue
Block a user