mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Update mock tests
This commit is contained in:
parent
04e28f390d
commit
b3c600acc3
13 changed files with 94 additions and 246 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue