aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/util_async_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/util_async_spec.lua b/spec/util_async_spec.lua
index 24f2efdb..67438595 100644
--- a/spec/util_async_spec.lua
+++ b/spec/util_async_spec.lua
@@ -84,6 +84,11 @@ describe("util.async", function()
end);
end);
describe("#waiter", function()
+ it("should error outside of async context", function ()
+ assert.has_error(function ()
+ async.waiter();
+ end);
+ end);
it("should work", function ()
local wait, done;