Skip to content

Commit

Permalink
fixed missing optional "scope" parameters in For unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tapple committed Jun 2, 2024
1 parent d268b2c commit 5cbca24
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/Spec/State/ForKeys.spec.luau
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ return function()
local expect = getfenv().expect

local scope = {}
local forObject = ForKeys(scope, {}, function()
local forObject = ForKeys(scope, {}, function(use, scope, key)
-- intentionally blank
end :: any)

Expand All @@ -33,7 +33,7 @@ return function()
local expect = getfenv().expect

local scope = {}
local forObject = ForKeys(scope, {}, function()
local forObject = ForKeys(scope, {}, function(use, scope, key)
-- intentionally blank
end :: any)
expect(function()
Expand Down
4 changes: 2 additions & 2 deletions test/Spec/State/ForPairs.spec.luau
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ return function()
local expect = getfenv().expect

local scope = {}
local forObject = ForPairs(scope, {}, function()
local forObject = ForPairs(scope, {}, function(use, scope, key, value)
-- intentionally blank
end :: any)

Expand All @@ -33,7 +33,7 @@ return function()
local expect = getfenv().expect

local scope = {}
local forObject = ForPairs(scope, {}, function()
local forObject = ForPairs(scope, {}, function(use, scope, key, value)
-- intentionally blank
end :: any)
expect(function()
Expand Down
4 changes: 2 additions & 2 deletions test/Spec/State/ForValues.spec.luau
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ return function()
local expect = getfenv().expect

local scope = {}
local forObject = ForValues(scope, {}, function()
local forObject = ForValues(scope, {}, function(use, scope, value)
-- intentionally blank
end :: any)

Expand All @@ -33,7 +33,7 @@ return function()
local expect = getfenv().expect

local scope = {}
local forObject = ForValues(scope, {}, function()
local forObject = ForValues(scope, {}, function(use, scope, value)
-- intentionally blank
end :: any)
expect(function()
Expand Down

0 comments on commit 5cbca24

Please sign in to comment.