mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
untrack now passes arguments to the callback
This commit is contained in:
parent
558505cd71
commit
c00791d7a0
2 changed files with 10 additions and 3 deletions
|
|
@ -1938,6 +1938,13 @@ TEST("untrack()", wrap_root(function()
|
|||
|
||||
CHECK(cleaned_count == 2)
|
||||
end
|
||||
|
||||
do CASE "passes values"
|
||||
untrack(function(a, b)
|
||||
CHECK(a == 1)
|
||||
CHECK(b == 2)
|
||||
end, 1, 2)
|
||||
end
|
||||
end))
|
||||
|
||||
TEST("events", function()
|
||||
|
|
@ -2464,7 +2471,7 @@ TEST("context()", function()
|
|||
end)
|
||||
|
||||
TEST("nested effects cases", function()
|
||||
local vide = require "../../vide"
|
||||
local vide = require "../src/lib"
|
||||
local source = vide.source
|
||||
local effect = vide.effect
|
||||
local untrack = vide.untrack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue