Update mock tests

This commit is contained in:
Aaron Smith 2023-08-09 17:58:17 +01:00
parent 04e28f390d
commit b3c600acc3
13 changed files with 94 additions and 246 deletions

View file

@ -1,12 +1,9 @@
local testkit = require("test/testkit")
local TEST, CASE, CHECK, FINISH, SKIP = testkit.test()
local Signal = require "test/goodsignal"
local mock = require "test/mock"
local Instance, Vector3, Color3, Vector2, UDim2 =
mock.Instance, mock.Vector3, mock.Color3, mock.Vector2, mock.UDim2
local Instance, Signal = mock.Instance, mock.Signal
local vide = require "src/init"
@ -1194,7 +1191,7 @@ TEST("Events", function()
-- testkit.print2(getmetatable(val))
CHECK(not connected)
val.Value = 1; val.Signal:Fire(val.Value)
val.Value = 1; Signal.fire(val.Signal, val.Value)
CHECK(connected)
end
end)