From 5cbca24619094d579b2d4e9150b931ceb3fdb86b Mon Sep 17 00:00:00 2001 From: Tapple Gao Date: Sun, 2 Jun 2024 12:16:28 -0700 Subject: [PATCH] fixed missing optional "scope" parameters in For unit tests --- test/Spec/State/ForKeys.spec.luau | 4 ++-- test/Spec/State/ForPairs.spec.luau | 4 ++-- test/Spec/State/ForValues.spec.luau | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/Spec/State/ForKeys.spec.luau b/test/Spec/State/ForKeys.spec.luau index 3935e2d65..69015374f 100644 --- a/test/Spec/State/ForKeys.spec.luau +++ b/test/Spec/State/ForKeys.spec.luau @@ -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) @@ -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() diff --git a/test/Spec/State/ForPairs.spec.luau b/test/Spec/State/ForPairs.spec.luau index be0e586c3..05fcbdb59 100644 --- a/test/Spec/State/ForPairs.spec.luau +++ b/test/Spec/State/ForPairs.spec.luau @@ -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) @@ -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() diff --git a/test/Spec/State/ForValues.spec.luau b/test/Spec/State/ForValues.spec.luau index 386850896..3f38aa6aa 100644 --- a/test/Spec/State/ForValues.spec.luau +++ b/test/Spec/State/ForValues.spec.luau @@ -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) @@ -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()