Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Add index error test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampfkarren committed Jan 28, 2019
1 parent b777149 commit c55f05b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Signal_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,10 @@ describe("Signal", function()
it("should have connections with the typeof RBXScriptConnection", function()
assert.equal("RBXScriptConnection", typeof(Signal.new():Connect(function() end)))
end)

it("should error when giving a bad index", function()
assert.has.errors(function()
local _ = Signal.new():Connect(function() end).Doge
end)
end)
end)

0 comments on commit c55f05b

Please sign in to comment.